summaryrefslogtreecommitdiff
path: root/src/actionmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actionmanager.cpp')
-rw-r--r--src/actionmanager.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp
index b8ea34286..381244799 100644
--- a/src/actionmanager.cpp
+++ b/src/actionmanager.cpp
@@ -703,17 +703,17 @@ impHandler0(hideWindows)
return true;
}
-impHandler0(helpWindowShow)
+static bool showHelpPage(const std::string &page, const bool showHide)
{
if (helpWindow)
{
- if (helpWindow->isWindowVisible())
+ if (showHide && helpWindow->isWindowVisible())
{
helpWindow->setVisible(false);
}
else
{
- helpWindow->loadHelp("index");
+ helpWindow->loadHelp(page);
helpWindow->requestMoveToTop();
}
return true;
@@ -721,6 +721,16 @@ impHandler0(helpWindowShow)
return false;
}
+impHandler0(helpWindowShow)
+{
+ return showHelpPage("index", true);
+}
+
+impHandler0(aboutWindowShow)
+{
+ return showHelpPage("about", false);
+}
+
static void showHideWindow(Window *const window)
{
if (window)