summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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())