summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2008-12-17 21:15:26 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-17 22:14:38 +0100
commitb885ddf99f73a5a86b72d60264a46bb2c4b0b995 (patch)
tree4f4e52c75c6e3aeecf57ce399ce157a281798087 /src/gui
parentfcc90586d1d1631c31b2799fdaf410af1b073cf0 (diff)
downloadmana-client-b885ddf99f73a5a86b72d60264a46bb2c4b0b995.tar.gz
mana-client-b885ddf99f73a5a86b72d60264a46bb2c4b0b995.tar.bz2
mana-client-b885ddf99f73a5a86b72d60264a46bb2c4b0b995.tar.xz
mana-client-b885ddf99f73a5a86b72d60264a46bb2c4b0b995.zip
Remember windows visibility.
(cherry picked from eathena client repository, commits 88af5cb15a02a26f4a5990ba3ef4df46e572bff4, 19ee623c0a1fdd333ef5b945ea887c983c829b1e, f924885ea0db5842b080610ec63e61a4bcc2a30c) Conflicts: src/gui/itemshortcutwindow.cpp src/gui/window.cpp
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/window.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp
index c40f8a25..582e4a67 100644
--- a/src/gui/window.cpp
+++ b/src/gui/window.cpp
@@ -135,6 +135,7 @@ Window::~Window()
// Saving X, Y and Width and Height for resizables in the config
config.setValue(name + "WinX", getX());
config.setValue(name + "WinY", getY());
+ config.setValue(name + "Visible", isVisible());
if (mGrip)
{
@@ -473,6 +474,7 @@ void Window::loadWindowState()
setPosition((int) config.getValue(name + "WinX", mDefaultX),
(int) config.getValue(name + "WinY", mDefaultY));
+ setVisible((bool) config.getValue(name + "Visible", false));
if (mGrip)
{