Ticket #9085: mythvideo.patch

File mythvideo.patch, 1.5 KB (added by Kevin Ross <kevin@…>, 10 years ago)
  • mythplugins/mythvideo/mythvideo/videofilter.cpp

     
    470470            ret = lhs.GetID() < rhs.GetID();
    471471            break;
    472472        }
     473        case kOrderByDateAddedDescending:
     474        {
     475            ret = lhs.GetInsertdate() > rhs.GetInsertdate();
     476            break;
     477        }
    473478        default:
    474479        {
    475480            VERBOSE(VB_IMPORTANT, QString("Error: unknown sort type %1")
     
    813818                           VideoFilterSettings::kOrderByFilename);
    814819    new MythUIButtonListItem(m_orderbyList, QObject::tr("Video ID"),
    815820                           VideoFilterSettings::kOrderByID);
     821    new MythUIButtonListItem(m_orderbyList, QObject::tr("Date Added"),
     822                           VideoFilterSettings::kOrderByDateAddedDescending);
    816823    m_orderbyList->SetValueByData(m_settings.getOrderby());
    817824
    818825    // Text Filter
  • mythplugins/mythvideo/mythvideo/videofilter.h

     
    5656        kOrderByLength = 3,
    5757        kOrderByFilename = 4,
    5858        kOrderByID = 5,
    59         kOrderBySeasonEp = 6
     59        kOrderBySeasonEp = 6,
     60        kOrderByDateAddedDescending = 7
    6061    };
    6162
    6263    int GetCategory() const { return category; }