diff options
Diffstat (limited to 'src/actionmanager.cpp')
-rw-r--r-- | src/actionmanager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp index e8bdc7511..381244799 100644 --- a/src/actionmanager.cpp +++ b/src/actionmanager.cpp @@ -703,11 +703,11 @@ impHandler0(hideWindows) return true; } -static bool showHelpPage(const std::string &page) +static bool showHelpPage(const std::string &page, const bool showHide) { if (helpWindow) { - if (helpWindow->isWindowVisible()) + if (showHide && helpWindow->isWindowVisible()) { helpWindow->setVisible(false); } @@ -723,12 +723,12 @@ static bool showHelpPage(const std::string &page) impHandler0(helpWindowShow) { - return showHelpPage("index"); + return showHelpPage("index", true); } impHandler0(aboutWindowShow) { - return showHelpPage("about"); + return showHelpPage("about", false); } static void showHideWindow(Window *const window) |