diff options
author | Florian Kagerer | 2010-07-05 15:53:17 +0000 |
---|---|---|
committer | Florian Kagerer | 2010-07-05 15:53:17 +0000 |
commit | 47e59d8cc2d4b04a7d16528985a0b52c2edd8a9f (patch) | |
tree | 575ffee64e61eca1a99dc93f516ee493cfe3e610 | |
parent | 63c439a858b96adbfb439651047b293d66947f19 (diff) | |
download | scummvm-rg350-47e59d8cc2d4b04a7d16528985a0b52c2edd8a9f.tar.gz scummvm-rg350-47e59d8cc2d4b04a7d16528985a0b52c2edd8a9f.tar.bz2 scummvm-rg350-47e59d8cc2d4b04a7d16528985a0b52c2edd8a9f.zip |
GUI/AUDIO: minor fix for the case that after enabling individual audio options for a target the gui tries to select the audio device from global options, but that particular device is unavailable due to GUIO flags settings
svn-id: r50684
-rw-r--r-- | gui/options.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/options.cpp b/gui/options.cpp index 74287667c2..9244edfa75 100644 --- a/gui/options.cpp +++ b/gui/options.cpp @@ -798,7 +798,7 @@ bool OptionsDialog::loadMusicDeviceSetting(PopUpWidget *popup, Common::String se for (MusicDevices::iterator d = i.begin(); d != i.end(); ++d) { if (setting.empty() ? (preferredType == d->getMusicType()) : (drv == d->getCompleteId())) { popup->setSelectedTag(d->getHandle()); - return true; + return popup->getSelected() == -1 ? false : true; } } } |