Return menu result, to close all menus

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1874 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
focus
2011-11-22 11:12:29 +00:00
parent 5c0292e59c
commit 7e7e7e218f
2 changed files with 5 additions and 4 deletions

View File

@@ -74,7 +74,7 @@ int CAudioSetup::exec(CMenuTarget* parent, const std::string &/*actionKey*/)
parent->hide();
}
showAudioSetup();
res = showAudioSetup();
return res;
}
@@ -111,7 +111,7 @@ const CMenuOptionChooser::keyval AUDIOMENU_AVSYNC_OPTIONS[AUDIOMENU_AVSYNC_OPTIO
// };
/* audio settings menu */
void CAudioSetup::showAudioSetup()
int CAudioSetup::showAudioSetup()
{
//menue init
CMenuWidget* audioSettings = new CMenuWidget(LOCALE_MAINSETTINGS_HEAD, NEUTRINO_ICON_SETTINGS, width);
@@ -182,10 +182,11 @@ void CAudioSetup::showAudioSetup()
audioSettings->addItem(mf);
#endif
audioSettings->exec(NULL, "");
int res = audioSettings->exec(NULL, "");
audioSettings->hide();
selected = audioSettings->getSelected();
delete audioSettings;
return res;
}
//sets menu mode to "wizard" or "default"