COsdSetup: fix possible crash on font setup in wizard mode

Channellist is not initialized in wizard mode.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 53bab09bda
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-14 (Thu, 14 Jan 2016)



------------------
This commit was generated by Migit
This commit is contained in:
2016-01-14 21:58:15 +01:00
parent 022ca9de9d
commit 913890f407

View File

@@ -253,7 +253,8 @@ int COsdSetup::exec(CMenuTarget* parent, const std::string &actionKey)
if (xre != g_settings.screen_xres || yre != g_settings.screen_yres) {
printf("[neutrino] new font scale settings x: %d%% y: %d%%\n", g_settings.screen_xres, g_settings.screen_yres);
CNeutrinoApp::getInstance()->SetupFonts(CNeutrinoFonts::FONTSETUP_NEUTRINO_FONT | CNeutrinoFonts::FONTSETUP_NEUTRINO_FONT_INST | CNeutrinoFonts::FONTSETUP_DYN_FONT);
CNeutrinoApp::getInstance()->channelList->ResetModules(); //force re init of all modules
if (CNeutrinoApp::getInstance()->channelList)
CNeutrinoApp::getInstance()->channelList->ResetModules(); //force re init of all modules
}
return res;
}