aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorLars Persson2009-02-12 22:05:07 +0000
committerLars Persson2009-02-12 22:05:07 +0000
commitadbc453163ef1408da4592913e8eda7f71ee1907 (patch)
tree8855f93c42315d97254ad1db710b8e5f6b749b55 /engines/scumm
parent3c163dbb4e2f79906fa7a64be706a512a94eb7fe (diff)
downloadscummvm-rg350-adbc453163ef1408da4592913e8eda7f71ee1907.tar.gz
scummvm-rg350-adbc453163ef1408da4592913e8eda7f71ee1907.tar.bz2
scummvm-rg350-adbc453163ef1408da4592913e8eda7f71ee1907.zip
Fixed working Keys button in in game options dialog
Fixed key mappings dialog layout svn-id: r36285
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/dialogs.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/engines/scumm/dialogs.cpp b/engines/scumm/dialogs.cpp
index fc21b10b8d..b193683337 100644
--- a/engines/scumm/dialogs.cpp
+++ b/engines/scumm/dialogs.cpp
@@ -591,14 +591,6 @@ ConfigDialog::ConfigDialog()
#ifdef SMALL_SCREEN_DEVICE
new GUI::ButtonWidget(this, "ScummConfig.Keys", "Keys", kKeysCmd, 'K');
#endif
-
-#ifdef SMALL_SCREEN_DEVICE
- //
- // Create the sub dialog(s)
- //
-
- _keysDialog = new GUI::KeysDialog();
-#endif
}
ConfigDialog::~ConfigDialog() {
@@ -611,7 +603,13 @@ void ConfigDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data)
switch (cmd) {
case kKeysCmd:
#ifdef SMALL_SCREEN_DEVICE
+ //
+ // Create the sub dialog(s)
+ //
+ _keysDialog = new GUI::KeysDialog();
_keysDialog->runModal();
+ delete _keysDialog;
+ _keysDialog = NULL;
#endif
break;
default: