diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-03-08 22:08:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-03-08 22:19:55 +0300 |
commit | a149a49aa167cb7122afc6b12bdb4af9fa90394c (patch) | |
tree | 4e2baf673cda888b94d1d640a055c6046105ffa9 /src/actionmanager.cpp | |
parent | 9247c5a23757e01ef7ee91dd5655fcab177e5e6d (diff) | |
download | manaplus-a149a49aa167cb7122afc6b12bdb4af9fa90394c.tar.gz manaplus-a149a49aa167cb7122afc6b12bdb4af9fa90394c.tar.bz2 manaplus-a149a49aa167cb7122afc6b12bdb4af9fa90394c.tar.xz manaplus-a149a49aa167cb7122afc6b12bdb4af9fa90394c.zip |
Add about button.
Diffstat (limited to 'src/actionmanager.cpp')
-rw-r--r-- | src/actionmanager.cpp | 14 |
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) |