summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-27 15:45:07 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-27 15:45:07 +0300
commitabdc57a4acfa490ee34985b56b2d985266ccc7e4 (patch)
tree8016393684c2e03dc0722dea98c44ff3e31d0ea5 /src/gui
parent0b9105af0ae2b85a0a3ea5364d8a854d107ce34a (diff)
downloadmanaplus-abdc57a4acfa490ee34985b56b2d985266ccc7e4.tar.gz
manaplus-abdc57a4acfa490ee34985b56b2d985266ccc7e4.tar.bz2
manaplus-abdc57a4acfa490ee34985b56b2d985266ccc7e4.tar.xz
manaplus-abdc57a4acfa490ee34985b56b2d985266ccc7e4.zip
Move chat command /enableaway into actions.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/popups/popupmenu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index c06c98540..41135f962 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -1480,8 +1480,8 @@ void PopupMenu::handleLink(const std::string &link,
}
else if (link == "enable away" && mTab)
{
- if (commandHandler)
- commandHandler->invokeCommand(COMMAND_ENABLEAWAY, mTab);
+ inputManager.executeChatCommand(InputAction::ENABLE_AWAY,
+ std::string(), mTab);
}
else if (link == "chat clipboard" && mTab)
{