gui/channellist.cpp: fix last change in setSelected - always set tuned

This commit is contained in:
[CST] Focus
2012-04-21 16:52:02 +04:00
parent 361c6b2e31
commit 28352bcc52

View File

@@ -1028,9 +1028,9 @@ void CChannelList::setSelected( int nChannelNr)
//printf("CChannelList::setSelected me %s %d -> %s\n", name.c_str(), nChannelNr, (nChannelNr < chanlist.size() && chanlist[nChannelNr] != NULL) ? chanlist[nChannelNr]->getName().c_str() : "********* NONE *********");
//FIXME real difference between tuned and selected ?!
selected_chid = 0;
tuned = nChannelNr;
if (nChannelNr < (int) chanlist.size()) {
selected = nChannelNr;
tuned = nChannelNr;
selected_chid = chanlist[tuned]->getChannelID();
}
}