summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/actions.cpp2
-rw-r--r--src/actions/windows.cpp9
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;