From 315f01573ccfbb7b10a60cbba0ef5cd89b7512db Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 2 Apr 2011 22:25:59 +0300 Subject: Another possible way to save chat settings on error. --- src/client.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3-70-g09d2