summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-02 22:25:59 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-02 22:25:59 +0300
commit315f01573ccfbb7b10a60cbba0ef5cd89b7512db (patch)
tree6d57158c577daceeafd6a265ed311cd046fac1c7
parentfbe6252e218ad069386f59f12254bff1e3b01aac (diff)
downloadmanaplus-315f01573ccfbb7b10a60cbba0ef5cd89b7512db.tar.gz
manaplus-315f01573ccfbb7b10a60cbba0ef5cd89b7512db.tar.bz2
manaplus-315f01573ccfbb7b10a60cbba0ef5cd89b7512db.tar.xz
manaplus-315f01573ccfbb7b10a60cbba0ef5cd89b7512db.zip
Another possible way to save chat settings on error.v1.1.4.3
-rw-r--r--src/client.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 636b61521..2d5680d18 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1197,6 +1197,8 @@ int Client::exec()
case STATE_ERROR:
logger->log1("State: ERROR");
logger->log("Error: %s\n", errorMessage.c_str());
+ if (chatWindow)
+ chatWindow->saveState();
mCurrentDialog = new OkDialog(_("Error"), errorMessage);
mCurrentDialog->addActionListener(&errorListener);
mCurrentDialog = NULL; // OkDialog deletes itself