summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-29 16:03:07 +0300
committerAndrei Karas <akaras@inbox.ru>2011-03-29 16:03:07 +0300
commitdbafe294280e06d0193f5de330796cf6a2a25732 (patch)
tree558070768c2203cc58831b43ccc48f036d4f2fe3 /src
parent7207644c69fb26c5b3e8081a1dd0012f924c185e (diff)
downloadmanaplus-dbafe294280e06d0193f5de330796cf6a2a25732.tar.gz
manaplus-dbafe294280e06d0193f5de330796cf6a2a25732.tar.bz2
manaplus-dbafe294280e06d0193f5de330796cf6a2a25732.tar.xz
manaplus-dbafe294280e06d0193f5de330796cf6a2a25732.zip
Save chat settings even in network errors.
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index c087046d0..bcbbefc4a 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -500,6 +500,8 @@ void Game::logic()
map->saveExtraLayer();
}
Client::closeDialogs();
+ if (chatWindow)
+ chatWindow->saveState();
disconnectedDialog = new OkDialog(_("Network Error"),
errorMessage, false);
disconnectedDialog->addActionListener(&errorListener);