gui/channellist.cpp: bugfix, reset selected chid in setSelected

This commit is contained in:
[CST] Focus
2012-03-19 18:06:57 +04:00
parent a0c1857c9a
commit 70371b93a9

View File

@@ -1115,6 +1115,10 @@ void CChannelList::setSelected( int nChannelNr)
selected = nChannelNr;
//FIXME real difference between tuned and selected ?!
tuned = nChannelNr;
if(tuned < chanlist.size())
selected_chid = chanlist[tuned]->getChannelID();
else
selected_chid = 0;
}
// -- Zap to channel with channel_id