Ticket #3504: epg_startchan_by_channum.diff

File epg_startchan_by_channum.diff, 1.6 KB (added by mythtv@…, 12 years ago)
  • libs/libmythtv/tv_play.cpp

     
    50595059
    50605060    // Collect channel info
    50615061    pbinfoLock.lock();
    5062     uint    chanid  = playbackinfo->chanid.toUInt();
     5062    bool    using_channum_for_startchannel = gContext->GetNumSetting("EPGUseChanNum",false);
     5063    uint    chanid  = (using_channum_for_startchannel) ? 0 : playbackinfo->chanid.toUInt();
    50635064    QString channum = playbackinfo->chanstr;
    50645065    pbinfoLock.unlock();
    50655066
  • programs/mythfrontend/globalsettings.cpp

     
    21842184    return gc;
    21852185}
    21862186
     2187static HostCheckBox *EPGUseChanNum()
     2188{
     2189    HostCheckBox *gc = new HostCheckBox("EPGUseChanNum");
     2190    gc->setLabel(QObject::tr("Ignore chanid for start channel check"));
     2191    gc->setHelpText(QObject::tr("If enabled, the EPG start channel check "
     2192                    " will be done by channum and not by chanid."));
     2193    gc->setValue(false);
     2194    return gc;
     2195}
     2196
    21872197static HostSpinBox *EPGChanDisplay()
    21882198{
    21892199    HostSpinBox *gs = new HostSpinBox("chanPerPage", 3, 12, 1);
     
    36893699    epg->addChild(EPGScrollType());
    36903700    epg->addChild(EPGShowChannelIcon());
    36913701    epg->addChild(EPGShowFavorites());
     3702    epg->addChild(EPGUseChanNum());
    36923703    epg->addChild(WatchTVGuide());
    36933704    epg->addChild(EPGChanDisplay());
    36943705    epg->addChild(EPGTimeDisplay());