From 5c8b7af4958edb4d53d2ac5ea575124a318b5cca Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 10 Jun 2012 04:16:52 +0200 Subject: 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. --- engines/mohawk/riven.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'engines/mohawk') 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) { -- cgit v1.2.3