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

Origin commit data
------------------
Branch: ni/coolstream
Commit: 28352bcc52
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-04-21 (Sat, 21 Apr 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2012-04-21 16:52:02 +04:00
parent a3ef083c19
commit 814488cfb4

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 *********"); //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();
} }
} }