diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/options.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gui/options.cpp b/gui/options.cpp index b4806e033f..ecfbc5e836 100644 --- a/gui/options.cpp +++ b/gui/options.cpp @@ -205,8 +205,13 @@ void GlobalOptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint3 break; case kPopUpItemSelectedCmd: if (sender == _midiPopUp) { - _detector._midi_driver = (int)data; - printf("Setting _detector._midi_driver to %d\n", _detector._midi_driver); + const MusicDriver *md = GameDetector::getMusicDrivers(); + for (; md->name; md++) { + if (md->id == (int) data) { + g_config->set ("music_driver", md->name, "user-overrides"); + break; + } + } } break; case kOKCmd: |