diff --git a/src/gui/audio_setup.cpp b/src/gui/audio_setup.cpp index e1604146e..27f290c40 100644 --- a/src/gui/audio_setup.cpp +++ b/src/gui/audio_setup.cpp @@ -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" diff --git a/src/gui/audio_setup.h b/src/gui/audio_setup.h index fab5bd139..603643c20 100644 --- a/src/gui/audio_setup.h +++ b/src/gui/audio_setup.h @@ -41,7 +41,7 @@ class CAudioSetup : public CMenuTarget int width, selected; bool is_wizard; - void showAudioSetup(); + int showAudioSetup(); public: enum AUDIO_SETUP_MODE