neutrino.cpp: fix, adjust channel list after channelsInit

Origin commit data
------------------
Commit: 08b3a3b0ad
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-03-22 (Thu, 22 Mar 2012)
This commit is contained in:
[CST] Focus
2012-03-22 19:09:25 +04:00
parent 6f344bc489
commit 54311ee911

View File

@@ -2297,7 +2297,6 @@ _show:
nNewChannel = bouquetList->exec(true);
}
_repeat:
//FIXME wrong name after channel delete ? */
CVFD::getInstance ()->showServicename(channelList->getActiveChannelName());
CVFD::getInstance()->setMode(CVFD::MODE_TVRADIO);
printf("************************* ZAP RES: nNewChannel %d\n", nNewChannel);fflush(stdout);
@@ -2328,6 +2327,8 @@ _repeat:
g_bouquetManager->saveUBouquets();
g_bouquetManager->renumServices();
channelsInit(true);
t_channel_id live_channel_id = CZapit::getInstance()->GetCurrentChannelID();
channelList->adjustToChannelID(live_channel_id);//FIXME what if deleted ?
bouquetList->activateBouquet(old_b_id, false);
msg = CRCInput::RC_ok;
goto _show;