Ticket #802: dvbchannel.patch

File dvbchannel.patch, 911 bytes (added by nooneimprt4nt@…, 14 years ago)

patch

  • libs/libmythtv/dvbchannel.cpp

     
    236236
    237237    inputChannel[currentcapchannel] = curchannelname;
    238238
     239    QString inputName;
     240    if (pParent && !pParent->CheckChannel(this, chan, inputName))
     241    {       
     242        VERBOSE(VB_IMPORTANT, QString(
     243                    "CheckChannel failed. Please verify "
     244                    "channel \"%2\" in the \"mythtv-setup\" Channel Editor.").
     245                arg(chan));
     246        return false;
     247    }
     248
     249    // If CheckChannel filled in the inputName then we need to
     250    // change inputs and return, since the act of changing
     251    // inputs will change the channel as well.
     252    if (!inputName.isEmpty())
     253        channelnames[currentcapchannel] = inputName;
     254
    239255    return true;
    240256}
    241257