Return menu result, to close all menus

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1876 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
focus
2011-11-22 11:30:50 +00:00
parent 294f597fb7
commit 3c5a037292
2 changed files with 6 additions and 13 deletions

View File

@@ -71,13 +71,13 @@ int COsdLangSetup::exec(CMenuTarget* parent, const std::string &/*actionKey*/)
if(parent != NULL)
parent->hide();
showLocalSetup();
int res = showLocalSetup();
return menu_return::RETURN_REPAINT;
return res;
}
//show international settings menu
void COsdLangSetup::showLocalSetup()
int COsdLangSetup::showLocalSetup()
{
//main local setup
CMenuWidget *localSettings = new CMenuWidget(LOCALE_MAINSETTINGS_HEAD, NEUTRINO_ICON_LANGUAGE, width);
@@ -105,10 +105,11 @@ void COsdLangSetup::showLocalSetup()
localSettings->addItem(new CMenuForwarder(LOCALE_AUDIOMENU_PREF_LANGUAGES, true, NULL, prefMenu, NULL, CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW));
langNotifier->changeNotify(NONEXISTANT_LOCALE, NULL);
localSettings->exec(NULL, "");
int res = localSettings->exec(NULL, "");
localSettings->hide();
selected = localSettings->getSelected();
delete localSettings;
return res;
}
@@ -263,7 +264,3 @@ bool CLangSelectNotifier::changeNotify(const neutrino_locale_t, void *)
return true;
}