diff options
Diffstat (limited to 'src/gui/popups')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 41135f962..b3569488e 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -23,8 +23,6 @@ #include "gui/popups/popupmenu.h" #include "actormanager.h" -#include "commands.h" -#include "commandhandler.h" #include "configuration.h" #include "dropshortcut.h" #include "game.h" @@ -1333,8 +1331,8 @@ void PopupMenu::handleLink(const std::string &link, } else if (link == "chat close" && mTab) { - if (commandHandler) - commandHandler->invokeCommand("close", "", mTab); + inputManager.executeChatCommand(InputAction::CLOSE_CHAT_TAB, + std::string(), mTab); } else if (link == "leave party" && mTab) { |