diff options
Diffstat (limited to 'src/gui/windows/helpwindow.cpp')
-rw-r--r-- | src/gui/windows/helpwindow.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/gui/windows/helpwindow.cpp b/src/gui/windows/helpwindow.cpp index d1083b0a9..91e05bcdb 100644 --- a/src/gui/windows/helpwindow.cpp +++ b/src/gui/windows/helpwindow.cpp @@ -24,6 +24,8 @@ #include "configuration.h" +#include "input/inputmanager.h" + #include "gui/gui.h" #include "gui/windows/didyouknowwindow.h" @@ -97,14 +99,7 @@ HelpWindow::HelpWindow() : void HelpWindow::action(const ActionEvent &event) { if (event.getId() == "DYK") - { - if (didYouKnowWindow) - { - didYouKnowWindow->setVisible(!didYouKnowWindow->isWindowVisible()); - if (didYouKnowWindow->isWindowVisible()) - didYouKnowWindow->requestMoveToTop(); - } - } + inputManager.executeAction(InputAction::WINDOW_DIDYOUKNOW); } void HelpWindow::handleLink(const std::string &link, |