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