Skip to content

Commit

Permalink
MOHAWK: Do not call close on SaveLoadChooser.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Johannes Schickel committed Jun 10, 2012
1 parent 15046a7 commit 5c8b7af
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions engines/mohawk/riven.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 5c8b7af

Please sign in to comment.