mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user