mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
gui/channellist.cpp: fix last change in setSelected - always set tuned
This commit is contained in:
@@ -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 *********");
|
//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 ?!
|
//FIXME real difference between tuned and selected ?!
|
||||||
selected_chid = 0;
|
selected_chid = 0;
|
||||||
|
tuned = nChannelNr;
|
||||||
if (nChannelNr < (int) chanlist.size()) {
|
if (nChannelNr < (int) chanlist.size()) {
|
||||||
selected = nChannelNr;
|
selected = nChannelNr;
|
||||||
tuned = nChannelNr;
|
|
||||||
selected_chid = chanlist[tuned]->getChannelID();
|
selected_chid = chanlist[tuned]->getChannelID();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user