diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-27 17:17:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-27 17:28:44 +0300 |
commit | 06300c8a3064a4f58ff7df3bdc8b91c68c25ee77 (patch) | |
tree | df1dea567a635f4a7722408ec10badcbe5528bcc /src/gui/popups/popupmenu.cpp | |
parent | 6f475537cb5e12f7088a401c4fb5b583bbabc580 (diff) | |
download | manaplus-06300c8a3064a4f58ff7df3bdc8b91c68c25ee77.tar.gz manaplus-06300c8a3064a4f58ff7df3bdc8b91c68c25ee77.tar.bz2 manaplus-06300c8a3064a4f58ff7df3bdc8b91c68c25ee77.tar.xz manaplus-06300c8a3064a4f58ff7df3bdc8b91c68c25ee77.zip |
Remove unused commands.cpp and commandhandler.cpp.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-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) { |