diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-25 17:09:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-25 17:09:41 +0300 |
commit | e73ef677cae51b6e775da1ad6ac3ece723de1cb4 (patch) | |
tree | 827c80def273c5a7b3517706cad26109ecfda84c /src/gui/windowmenu.cpp | |
parent | fd6f7a8fec07920c5941c5010e086f4bb449404e (diff) | |
download | mv-e73ef677cae51b6e775da1ad6ac3ece723de1cb4.tar.gz mv-e73ef677cae51b6e775da1ad6ac3ece723de1cb4.tar.bz2 mv-e73ef677cae51b6e775da1ad6ac3ece723de1cb4.tar.xz mv-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.cpp | 7 |
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()) |