mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 15:41:41 +00:00
Fix invalid pop up widget selection, when no "opl_driver" setting is present.
svn-id: r40506
This commit is contained in:
parent
9c18a12fa0
commit
68c7aa7ff1
@ -183,8 +183,10 @@ void OptionsDialog::open() {
|
||||
_midiPopUp->setSelectedTag(id);
|
||||
}
|
||||
|
||||
if (_oplPopUp)
|
||||
_oplPopUp->setSelectedTag(OPL::Config::parse(ConfMan.get("opl_driver", _domain)));
|
||||
if (_oplPopUp) {
|
||||
OPL::Config::DriverId id = MAX<OPL::Config::DriverId>(OPL::Config::parse(ConfMan.get("opl_driver", _domain)), 0);
|
||||
_oplPopUp->setSelectedTag(id);
|
||||
}
|
||||
|
||||
if (_outputRatePopUp) {
|
||||
_outputRatePopUp->setSelected(1);
|
||||
|
Loading…
Reference in New Issue
Block a user