Ticket #13154: mythfrontend_orderby_callsign.patch

File mythfrontend_orderby_callsign.patch, 796 bytes (added by mike.bibbings@…, 3 years ago)

Fix ordering by callsign in Programme Guide

  • mythtv/programs/mythfrontend/guidegrid.cpp

    diff --git a/mythtv/programs/mythfrontend/guidegrid.cpp b/mythtv/programs/mythfrontend/guidegrid.cpp
    index 7b71261..f62a47a 100644
    a b void GuideGrid::fillChannelInfos(bool gotostartchannel) 
    13861386                                         ChannelUtil::kChanGroupByChanid,
    13871387                                         0,
    13881388                                         (m_changrpid < 0) ? 0 : m_changrpid);
    1389 
     1389   
     1390    if  (m_channelOrdering == "callsign")
     1391    {
     1392        ChannelUtil::SortChannels(channels, m_channelOrdering,false);
     1393    }
     1394   
    13901395    typedef vector<uint> uint_list_t;
    13911396    QMap<QString,uint_list_t> channum_to_index_map;
    13921397    QMap<QString,uint_list_t> callsign_to_index_map;