diff options
author | Lloyd Bryant <lloyd_bryant@netzero.net> | 2008-07-25 17:00:48 +0000 |
---|---|---|
committer | Lloyd Bryant <lloyd_bryant@netzero.net> | 2008-07-25 17:00:48 +0000 |
commit | b7bc2f74f4f2253bd67b2d51fa3d2c47d648453e (patch) | |
tree | 0b11d3e871ad33618f21b43b24d999014a7b1d7f /src/gui/window.cpp | |
parent | 83f233b27ea4fdd5e9b16685af5c55eab8b0d295 (diff) | |
download | mana-client-b7bc2f74f4f2253bd67b2d51fa3d2c47d648453e.tar.gz mana-client-b7bc2f74f4f2253bd67b2d51fa3d2c47d648453e.tar.bz2 mana-client-b7bc2f74f4f2253bd67b2d51fa3d2c47d648453e.tar.xz mana-client-b7bc2f74f4f2253bd67b2d51fa3d2c47d648453e.zip |
Applied patch by ElvenProgrammer to remember window locations between sessions
Diffstat (limited to 'src/gui/window.cpp')
-rw-r--r-- | src/gui/window.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp index 4f94b3fb..55dac5e0 100644 --- a/src/gui/window.cpp +++ b/src/gui/window.cpp @@ -137,6 +137,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) { @@ -476,6 +477,7 @@ Window::loadWindowState() setPosition((int) config.getValue(name + "WinX", mDefaultX), (int) config.getValue(name + "WinY", mDefaultY)); + setVisible((bool) config.getValue(name + "Visible", false)); if (mGrip) { |