From 01a0e4b658241cc3dbd8a5d11d34a6de48dab159 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 28 May 2015 00:55:13 +0300 Subject: Add strong typed bool type Visible. --- src/actions/windows.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/actions/windows.cpp') diff --git a/src/actions/windows.cpp b/src/actions/windows.cpp index 6a917c5b5..bd82521d4 100644 --- a/src/actions/windows.cpp +++ b/src/actions/windows.cpp @@ -76,7 +76,7 @@ impHandler0(setupWindowShow) } else { - setupWindow->setVisible(true); + setupWindow->setVisible(Visible_true); setupWindow->requestMoveToTop(); } return true; @@ -97,7 +97,7 @@ static bool showHelpPage(const std::string &page, const bool showHide) { if (showHide && helpWindow->isWindowVisible()) { - helpWindow->setVisible(false); + helpWindow->setVisible(Visible_false); } else { @@ -151,7 +151,8 @@ static void showHideWindow(Window *const window) { if (window) { - window->setVisible(!window->isWindowVisible()); + window->setVisible(fromBool( + !window->isWindowVisible(), Visible)); if (window->isWindowVisible()) window->requestMoveToTop(); } @@ -318,7 +319,7 @@ impHandler0(quickWindowShow) { setupWindow->doCancel(); } - setupWindow->setVisible(true); + setupWindow->setVisible(Visible_true); setupWindow->activateTab(_("Quick")); setupWindow->requestMoveToTop(); return true; -- cgit v1.2.3-70-g09d2