summaryrefslogtreecommitdiff
path: root/src/gui/setup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/setup.cpp')
-rw-r--r--src/gui/setup.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/setup.cpp b/src/gui/setup.cpp
index d73212d48..0b40d8c01 100644
--- a/src/gui/setup.cpp
+++ b/src/gui/setup.cpp
@@ -22,6 +22,7 @@
#include "gui/setup.h"
+#include "chatwindow.h"
#include "configuration.h"
#include "game.h"
#include "main.h"
@@ -149,6 +150,8 @@ void Setup::action(const gcn::ActionEvent &event)
}
else if (event.getId() == "Store")
{
+ if (chatWindow)
+ chatWindow->saveState();
config.write();
serverConfig.write();
}