neutrino.cpp: fix crash, if old bouquet not present after edit

This commit is contained in:
[CST] Focus
2012-04-20 20:10:08 +04:00
parent a3621a73ca
commit b948c1c2fc

View File

@@ -2260,6 +2260,7 @@ int CNeutrinoApp::handleMsg(const neutrino_msg_t _msg, neutrino_msg_data_t data)
StopSubtitles();
_show:
int nNewChannel = -1;
int old_num = 0;
int old_b = bouquetList->getActiveBouquetNumber();
@@ -2270,7 +2271,7 @@ int CNeutrinoApp::handleMsg(const neutrino_msg_t _msg, neutrino_msg_data_t data)
if(bouquetList->Bouquets.size()) {
old_num = bouquetList->Bouquets[old_b]->channelList->getSelected();
}
_show:
//_show:
if(msg == CRCInput::RC_ok)
{
if(bouquetList->Bouquets.size() && bouquetList->Bouquets[old_b]->channelList->getSize() > 0)