From 56bbd3eb0a8a17a02b436488555e2910d2775f10 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 24 Jul 2014 12:49:26 +0300 Subject: Fix hide windows action (default key H) Now it hide all non dialog windows. --- src/gui/windows/setupwindow.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/gui/windows/setupwindow.cpp') 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::const_iterator, it, mWindowsToReset) + { + Window *const window = *it; + if (window) + window->setVisible(false); + } + setVisible(false); +} + void SetupWindow::doCancel() { setVisible(false); -- cgit v1.2.3-70-g09d2