diff options
Diffstat (limited to 'gui/options.cpp')
-rw-r--r-- | gui/options.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/options.cpp b/gui/options.cpp index b9516b32ff..5116d67178 100644 --- a/gui/options.cpp +++ b/gui/options.cpp @@ -291,6 +291,8 @@ void OptionsDialog::setAudioSettingsState(bool enabled) { void OptionsDialog::setMIDISettingsState(bool enabled) { _enableMIDISettings = enabled; + _soundFontButton->setEnabled(enabled); + _soundFont->setEnabled(enabled); _multiMidiCheckbox->setEnabled(enabled); _mt32Checkbox->setEnabled(enabled); _enableGSCheckbox->setEnabled(enabled); @@ -383,7 +385,7 @@ int OptionsDialog::addMIDIControls(GuiObject *boss, int yoffset) { const int w = _w - 20; // SoundFont - new ButtonWidget(boss, x, yoffset, kButtonWidth + 14, 16, "SoundFont: ", kChooseSoundFontCmd, 0); + _soundFontButton = new ButtonWidget(boss, x, yoffset, kButtonWidth + 14, 16, "SoundFont: ", kChooseSoundFontCmd, 0); _soundFont = new StaticTextWidget(boss, x + kButtonWidth + 20, yoffset + 3, _w - (x + kButtonWidth + 20) - 10, kLineHeight, "None", kTextAlignLeft); yoffset += 18; |