src/gui/scan_setup.cpp: prevent crash in wizard - channel list not created yet

This commit is contained in:
[CST] Focus
2013-06-27 17:58:49 +04:00
parent 63173fd5e2
commit 584405883d

View File

@@ -660,7 +660,7 @@ int CScanSetup::showScanMenuFrontendSetup()
fe_restart = false;
CFEManager::getInstance()->linkFrontends(true);
t_channel_id live_channel_id = CZapit::getInstance()->GetCurrentChannelID();
if (live_channel_id)
if (live_channel_id && CNeutrinoApp::getInstance()->channelList)
CNeutrinoApp::getInstance()->channelList->zapTo_ChannelID(live_channel_id, true);
}
return res;