mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
src/neutrino.cpp: setSelected(old_num) on channel list exit wrong in case of sort
mode change - try to restore current channel id
This commit is contained in:
@@ -2392,8 +2392,14 @@ _repeat:
|
|||||||
* other modes selected bouquet not restored */
|
* other modes selected bouquet not restored */
|
||||||
SetChannelMode(old_mode);
|
SetChannelMode(old_mode);
|
||||||
bouquetList->activateBouquet(old_b, false);
|
bouquetList->activateBouquet(old_b, false);
|
||||||
|
#if 0
|
||||||
if(!bouquetList->Bouquets.empty())
|
if(!bouquetList->Bouquets.empty())
|
||||||
bouquetList->Bouquets[bouquetList->getActiveBouquetNumber()]->channelList->setSelected(old_num);
|
bouquetList->Bouquets[bouquetList->getActiveBouquetNumber()]->channelList->setSelected(old_num);
|
||||||
|
#endif
|
||||||
|
if(!bouquetList->Bouquets.empty()) {
|
||||||
|
t_channel_id old_id = bouquetList->Bouquets[bouquetList->getActiveBouquetNumber()]->channelList->getActiveChannel_ChannelID();
|
||||||
|
bouquetList->Bouquets[bouquetList->getActiveBouquetNumber()]->channelList->adjustToChannelID(old_id, false);
|
||||||
|
}
|
||||||
StartSubtitles(mode == mode_tv);
|
StartSubtitles(mode == mode_tv);
|
||||||
}
|
}
|
||||||
else if(nNewChannel == -3) { // list mode changed
|
else if(nNewChannel == -3) { // list mode changed
|
||||||
|
Reference in New Issue
Block a user