From a149a49aa167cb7122afc6b12bdb4af9fa90394c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 8 Mar 2014 22:08:22 +0300 Subject: Add about button. --- src/actionmanager.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/actionmanager.cpp') 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) -- cgit v1.2.3-70-g09d2