From 47e59d8cc2d4b04a7d16528985a0b52c2edd8a9f Mon Sep 17 00:00:00 2001 From: Florian Kagerer Date: Mon, 5 Jul 2010 15:53:17 +0000 Subject: 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 --- gui/options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui') 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; } } } -- cgit v1.2.3