summaryrefslogtreecommitdiff
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
parent7207644c69fb26c5b3e8081a1dd0012f924c185e (diff)
downloadManaVerse-dbafe294280e06d0193f5de330796cf6a2a25732.tar.gz
ManaVerse-dbafe294280e06d0193f5de330796cf6a2a25732.tar.bz2
ManaVerse-dbafe294280e06d0193f5de330796cf6a2a25732.tar.xz
ManaVerse-dbafe294280e06d0193f5de330796cf6a2a25732.zip
Save chat settings even in network errors.
-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);