Ticket #3122: proglist.patch

File proglist.patch, 877 bytes (added by Dan WIlga <mythtv-dev@…>, 14 years ago)
  • libs/libmythtv/proglist.cpp

     
    5757    allowUpdates = true;
    5858    updateAll = false;
    5959    refillAll = false;
    60     titleSort = false;
    61     reverseSort = false;
     60    titleSort = gContext->GetNumSetting("ProgListTitleSort", false);
     61    reverseSort = gContext->GetNumSetting("ProgListReverseSort", false);
    6262
    6363    fullRect = QRect(0, 0, size().width(), size().height());
    6464    viewRect = QRect(0, 0, 0, 0);
     
    127127ProgLister::~ProgLister()
    128128{
    129129    itemList.clear();
     130    gContext->SaveSetting("ProgListTitleSort", titleSort);
     131    gContext->SaveSetting("ProgListReverseSort", reverseSort);
    130132    gContext->removeListener(this);
    131133    gContext->removeCurrentLocation();
    132134    delete theme;