Ticket #2206: channelbase_browse_mode.diff
File channelbase_browse_mode.diff, 1005 bytes (added by , 15 years ago) |
---|
-
channelbase.cpp
74 74 75 75 uint ChannelBase::GetNextChannel(const QString &channum, int direction) const 76 76 { 77 /* 77 78 InputMap::const_iterator it = inputs.find(currentInputID); 78 79 if (it == inputs.end()) 79 80 return 0; 80 81 81 82 uint chanid = ChannelUtil::GetChanID((*it)->sourceid, channum); 83 */ 84 // Problem: In 'browse mode' when we transition to a different inputid the 85 // currentInputID and curchannelname are not updated correctly(?) and can't be used. 86 // Soln: Use allchannels to get the chanid from the channum. 87 uint chanid = 0; 88 DBChanList::const_iterator it = allchannels.begin(); 89 while (it != allchannels.end()) 90 { 91 if (it->channum == channum) 92 { 93 chanid = it->chanid; 94 break; 95 } 96 it++; 97 } 82 98 return GetNextChannel(chanid, direction); 83 99 } 84 100