diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-28 00:55:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-28 00:55:13 +0300 |
commit | 01a0e4b658241cc3dbd8a5d11d34a6de48dab159 (patch) | |
tree | 37294c079b9a05768b7380f7595784eb73485769 /src/actions | |
parent | 072b727ae4d072d6c84f3331d78ca5a2ac76d271 (diff) | |
download | mv-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.gz mv-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.bz2 mv-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.xz mv-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.zip |
Add strong typed bool type Visible.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/actions.cpp | 2 | ||||
-rw-r--r-- | src/actions/windows.cpp | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index aacd40406..a666d01a2 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -341,7 +341,7 @@ impHandler0(ok) // Close the Browser if opened if (helpWindow && helpWindow->isWindowVisible()) { - helpWindow->setVisible(false); + helpWindow->setVisible(Visible_false); return true; } // Close the config window, cancelling changes if opened 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; |