aboutsummaryrefslogtreecommitdiff
path: root/gui/options.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-05-16 06:33:33 +0000
committerTorbjörn Andersson2005-05-16 06:33:33 +0000
commit6bcfb6ed97bef820b1b3d071b9fdd34a2bbe8f7a (patch)
tree8c9f63d422650a058a8a07b1247bd910890773dd /gui/options.cpp
parenta0648d054f21cab4c64bb651b141ccd0c22c9559 (diff)
downloadscummvm-rg350-6bcfb6ed97bef820b1b3d071b9fdd34a2bbe8f7a.tar.gz
scummvm-rg350-6bcfb6ed97bef820b1b3d071b9fdd34a2bbe8f7a.tar.bz2
scummvm-rg350-6bcfb6ed97bef820b1b3d071b9fdd34a2bbe8f7a.zip
Fixed the SoundFont button's behaviour in the Edit Game dialog.
svn-id: r18125
Diffstat (limited to 'gui/options.cpp')
-rw-r--r--gui/options.cpp4
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;