summaryrefslogtreecommitdiff
path: root/src/actionmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-08 22:08:22 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-08 22:19:55 +0300
commita149a49aa167cb7122afc6b12bdb4af9fa90394c (patch)
tree4e2baf673cda888b94d1d640a055c6046105ffa9 /src/actionmanager.cpp
parent9247c5a23757e01ef7ee91dd5655fcab177e5e6d (diff)
downloadmv-a149a49aa167cb7122afc6b12bdb4af9fa90394c.tar.gz
mv-a149a49aa167cb7122afc6b12bdb4af9fa90394c.tar.bz2
mv-a149a49aa167cb7122afc6b12bdb4af9fa90394c.tar.xz
mv-a149a49aa167cb7122afc6b12bdb4af9fa90394c.zip
Add about button.
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)