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

Origin commit data
------------------
Commit: 584405883d
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-06-27 (Thu, 27 Jun 2013)
This commit is contained in:
[CST] Focus
2013-06-27 17:58:49 +04:00
parent 6de6fcef79
commit 612052822e

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;