summaryrefslogtreecommitdiff
path: root/src/gui/windows/setupwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-24 12:49:26 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-24 12:49:26 +0300
commit56bbd3eb0a8a17a02b436488555e2910d2775f10 (patch)
tree5debc16538652fff8673472c7acbdb110eb6d862 /src/gui/windows/setupwindow.cpp
parent9c36b0237767cc42bfc74d77935f229f139a6663 (diff)
downloadmanaplus-56bbd3eb0a8a17a02b436488555e2910d2775f10.tar.gz
manaplus-56bbd3eb0a8a17a02b436488555e2910d2775f10.tar.bz2
manaplus-56bbd3eb0a8a17a02b436488555e2910d2775f10.tar.xz
manaplus-56bbd3eb0a8a17a02b436488555e2910d2775f10.zip
Fix hide windows action (default key H)
Now it hide all non dialog windows.
Diffstat (limited to 'src/gui/windows/setupwindow.cpp')
-rw-r--r--src/gui/windows/setupwindow.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/windows/setupwindow.cpp b/src/gui/windows/setupwindow.cpp
index 93556ab08..07a4b776a 100644
--- a/src/gui/windows/setupwindow.cpp
+++ b/src/gui/windows/setupwindow.cpp
@@ -255,6 +255,17 @@ void SetupWindow::unregisterWindowForReset(Window *const window)
}
}
+void SetupWindow::hideWindows()
+{
+ FOR_EACH (std::list<Window*>::const_iterator, it, mWindowsToReset)
+ {
+ Window *const window = *it;
+ if (window)
+ window->setVisible(false);
+ }
+ setVisible(false);
+}
+
void SetupWindow::doCancel()
{
setVisible(false);