summaryrefslogtreecommitdiff
path: root/src/gui/windowmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-25 17:09:41 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-25 17:09:41 +0300
commite73ef677cae51b6e775da1ad6ac3ece723de1cb4 (patch)
tree827c80def273c5a7b3517706cad26109ecfda84c /src/gui/windowmenu.cpp
parentfd6f7a8fec07920c5941c5010e086f4bb449404e (diff)
downloadplus-e73ef677cae51b6e775da1ad6ac3ece723de1cb4.tar.gz
plus-e73ef677cae51b6e775da1ad6ac3ece723de1cb4.tar.bz2
plus-e73ef677cae51b6e775da1ad6ac3ece723de1cb4.tar.xz
plus-e73ef677cae51b6e775da1ad6ac3ece723de1cb4.zip
Close help window if it already opened and player clicked on "HLP" button.
Diffstat (limited to 'src/gui/windowmenu.cpp')
-rw-r--r--src/gui/windowmenu.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp
index 56fedb3e8..728718acc 100644
--- a/src/gui/windowmenu.cpp
+++ b/src/gui/windowmenu.cpp
@@ -225,7 +225,12 @@ void WindowMenu::action(const gcn::ActionEvent &event)
if (window)
{
if (window == helpWindow)
- helpWindow->loadHelp("index");
+ {
+ if (window->isVisible())
+ window->setVisible(false);
+ else
+ helpWindow->loadHelp("index");
+ }
else
window->setVisible(!window->isVisible());
if (window->isVisible())