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/windows.cpp | |
parent | 072b727ae4d072d6c84f3331d78ca5a2ac76d271 (diff) | |
download | manaplus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.gz manaplus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.bz2 manaplus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.xz manaplus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.zip |
Add strong typed bool type Visible.
Diffstat (limited to 'src/actions/windows.cpp')
-rw-r--r-- | src/actions/windows.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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; |