diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2008-07-23 17:23:30 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2008-07-23 17:23:30 +0000 |
commit | 88af5cb15a02a26f4a5990ba3ef4df46e572bff4 (patch) | |
tree | 2048504328935423b0e4aa02cc58b5265c24d432 /src/gui/window.cpp | |
parent | c17120c9838665fd546c6ae7a1d81de79659d429 (diff) | |
download | mana-88af5cb15a02a26f4a5990ba3ef4df46e572bff4.tar.gz mana-88af5cb15a02a26f4a5990ba3ef4df46e572bff4.tar.bz2 mana-88af5cb15a02a26f4a5990ba3ef4df46e572bff4.tar.xz mana-88af5cb15a02a26f4a5990ba3ef4df46e572bff4.zip |
Remember windows visibility.
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 4ce167cd..1c5072f5 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) { |