summaryrefslogtreecommitdiff
path: root/src/progs/manaplus/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/progs/manaplus/client.cpp')
-rw-r--r--src/progs/manaplus/client.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/progs/manaplus/client.cpp b/src/progs/manaplus/client.cpp
index 84f6cdcce..bc5007884 100644
--- a/src/progs/manaplus/client.cpp
+++ b/src/progs/manaplus/client.cpp
@@ -1080,6 +1080,7 @@ int Client::gameExec()
BLOCK_START("Client::gameExec STATE_CHOOSE_SERVER")
logger->log1("State: CHOOSE SERVER");
unloadData();
+ pincodeManager.closeDialogs();
// Allow changing this using a server choice dialog
// We show the dialog box only if the command-line
@@ -1620,6 +1621,7 @@ int Client::gameExec()
serverConfig.write();
logger->log1("State: ERROR");
logger->log("Error: %s\n", errorMessage.c_str());
+ pincodeManager.closeDialogs();
mCurrentDialog = DialogsManager::openErrorDialog(
// TRANSLATORS: error message header
_("Error"),