summaryrefslogtreecommitdiff
path: root/src/progs/manaplus/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-03-08 01:35:19 +0300
committerAndrei Karas <akaras@inbox.ru>2018-03-08 01:35:19 +0300
commit676c5e978cbb312fbf4df8ec396c0f8b08944a96 (patch)
tree3336dda58d228fdada40453d80769e5186dab845 /src/progs/manaplus/client.cpp
parent0d9e625499c18a4eaf79d38dfb1ef6abf0c553bd (diff)
downloadmv-676c5e978cbb312fbf4df8ec396c0f8b08944a96.tar.gz
mv-676c5e978cbb312fbf4df8ec396c0f8b08944a96.tar.bz2
mv-676c5e978cbb312fbf4df8ec396c0f8b08944a96.tar.xz
mv-676c5e978cbb312fbf4df8ec396c0f8b08944a96.zip
Add support for enter auth pincode.
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"),