aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2012-06-10 04:16:52 +0200
committerJohannes Schickel2012-06-10 04:19:57 +0200
commit5c8b7af4958edb4d53d2ac5ea575124a318b5cca (patch)
tree2fd1de80e89fad159c80f2bdab91580e98dc46b4 /engines
parent15046a7529e3c755de1f00b4a2666786eb2bd4f8 (diff)
downloadscummvm-rg350-5c8b7af4958edb4d53d2ac5ea575124a318b5cca.tar.gz
scummvm-rg350-5c8b7af4958edb4d53d2ac5ea575124a318b5cca.tar.bz2
scummvm-rg350-5c8b7af4958edb4d53d2ac5ea575124a318b5cca.zip
MOHAWK: Do not call close on SaveLoadChooser.
This is actually always called when a dialog closes, thus manual closing is not required. It furthermore is actually *bad* to call this from outside the dialog's code, since it will remove the top dialog from the dialog stack and thus mess up the GUI in case multiple dialogs are opened.
Diffstat (limited to 'engines')
-rw-r--r--engines/mohawk/riven.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp
index b7866a3cb7..d66e46f4a8 100644
--- a/engines/mohawk/riven.cpp
+++ b/engines/mohawk/riven.cpp
@@ -723,8 +723,6 @@ void MohawkEngine_Riven::runLoadDialog() {
int slot = slc.runModalWithPluginAndTarget(plugin, ConfMan.getActiveDomainName());
if (slot >= 0)
loadGameState(slot);
-
- slc.close();
}
Common::Error MohawkEngine_Riven::loadGameState(int slot) {