From 0b9105af0ae2b85a0a3ea5364d8a854d107ce34a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Aug 2014 15:40:34 +0300 Subject: Move chat command /disableaway into actions. --- src/gui/popups/popupmenu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index b3970e7aa..c06c98540 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -1475,8 +1475,8 @@ void PopupMenu::handleLink(const std::string &link, } else if (link == "disable away" && mTab) { - if (commandHandler) - commandHandler->invokeCommand(COMMAND_DISABLEAWAY, mTab); + inputManager.executeChatCommand(InputAction::DISABLE_AWAY, + std::string(), mTab); } else if (link == "enable away" && mTab) { -- cgit v1.2.3-70-g09d2