From 06300c8a3064a4f58ff7df3bdc8b91c68c25ee77 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Aug 2014 17:17:53 +0300 Subject: Remove unused commands.cpp and commandhandler.cpp. --- src/gui/popups/popupmenu.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/gui/popups') 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) { -- cgit v1.2.3-70-g09d2