mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
neutrino.cpp: fix crash, if old bouquet not present after edit
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user