Ticket #9038: 9038_fixes.diff

File 9038_fixes.diff, 2.1 KB (added by paulh, 14 years ago)

Patch for 0.13-fixes

  • programs/mythfrontend/guidegrid.cpp

     
    166166void GuideGrid::RunProgramGuide(uint chanid, const QString &channum,
    167167                    TV *player, bool embedVideo, bool allowFinder, int changrpid)
    168168{
     169    // which channel group should we default to
     170    if (changrpid == -2)
     171        changrpid = gContext->GetNumSetting("ChannelGroupDefault", -1);
     172
    169173    // check there are some channels setup
    170174    DBChanList channels = ChannelUtil::GetChannels(0, true, "", changrpid);
    171175    if (!channels.size())
     
    404408    // tell the player to update its channel list just in case
    405409    if (m_player)
    406410        m_player->UpdateChannelList(m_changrpid);
     411
     412    if (gContext->GetNumSetting("ChannelGroupRememberLast", 0))
     413        gContext->SaveSetting("ChannelGroupDefault", m_changrpid);
    407414}
    408415
    409416bool GuideGrid::keyPressEvent(QKeyEvent *event)
  • programs/mythfrontend/main.cpp

     
    224224    uint chanid = 0;
    225225    QString channum = gContext->GetSetting("DefaultTVChannel");
    226226    channum = (channum.isEmpty()) ? "3" : channum;
    227     GuideGrid::RunProgramGuide(chanid, channum);
     227    GuideGrid::RunProgramGuide(chanid, channum, NULL, false, true, -2);
    228228}
    229229
    230230void startFinder(void)
  • programs/mythfrontend/progfind.cpp

     
    403403        if (startchannel.isEmpty())
    404404            startchannel = '3';
    405405        uint startchanid = 0;
    406         GuideGrid::RunProgramGuide(startchanid, startchannel, m_player, m_embedVideo, false);
     406        GuideGrid::RunProgramGuide(startchanid, startchannel, m_player, m_embedVideo, false, -2);
    407407    }
    408408}
    409409