diff --git a/src/gui/osdlang_setup.cpp b/src/gui/osdlang_setup.cpp index 0266b79dc..d53802637 100644 --- a/src/gui/osdlang_setup.cpp +++ b/src/gui/osdlang_setup.cpp @@ -59,6 +59,7 @@ COsdLangSetup::COsdLangSetup(bool wizard_mode) is_wizard = wizard_mode; width = w_max (45, 10); + tzNotifier = NULL; } COsdLangSetup::~COsdLangSetup() @@ -96,6 +97,7 @@ int COsdLangSetup::showLocalSetup() localSettings->addItem(mf); //timezone setup + tzNotifier = new CTZChangeNotifier(); CMenuOptionStringChooser* tzSelect = getTzItems(); if (tzSelect != NULL) localSettings->addItem(tzSelect); @@ -114,6 +116,7 @@ int COsdLangSetup::showLocalSetup() int res = localSettings->exec(NULL, ""); delete localSettings; delete langNotifier; + delete tzNotifier; return res; } @@ -126,7 +129,7 @@ CMenuOptionStringChooser* COsdLangSetup::getTzItems() CMenuOptionStringChooser* tzSelect = NULL; if (parser != NULL) { - tzSelect = new CMenuOptionStringChooser(LOCALE_MAINSETTINGS_TIMEZONE, g_settings.timezone, true, new CTZChangeNotifier(), CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN, true); + tzSelect = new CMenuOptionStringChooser(LOCALE_MAINSETTINGS_TIMEZONE, g_settings.timezone, true, tzNotifier, CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN, true); tzSelect->setHint("", LOCALE_MENU_HINT_TIMEZONE); xmlNodePtr search = xmlDocGetRootElement(parser)->xmlChildrenNode; bool found = false; diff --git a/src/gui/osdlang_setup.h b/src/gui/osdlang_setup.h index 1e181b46b..e99125d76 100644 --- a/src/gui/osdlang_setup.h +++ b/src/gui/osdlang_setup.h @@ -54,6 +54,7 @@ class COsdLangSetup : public CMenuTarget, CChangeObserver int width; bool is_wizard; + CTZChangeNotifier * tzNotifier; int showLocalSetup(); void showPrefMenu(CMenuWidget *prefMenu, CLangSelectNotifier *langNotifier);