diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-18 17:02:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-18 17:02:13 +0300 |
commit | dd828df46a661fbd0a24fbe540a4a585360be005 (patch) | |
tree | 7963e4739a4f6ace5d5c847edd4e679cc6c9bf87 /src/gui | |
parent | ea28a76cfbace0ccc8d25e523b410f2dea339423 (diff) | |
download | manaverse-dd828df46a661fbd0a24fbe540a4a585360be005.tar.gz manaverse-dd828df46a661fbd0a24fbe540a4a585360be005.tar.bz2 manaverse-dd828df46a661fbd0a24fbe540a4a585360be005.tar.xz manaverse-dd828df46a661fbd0a24fbe540a4a585360be005.zip |
add named commands with enum.
use some named commands from popupmenu.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/popupmenu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index 53a8a11f7..f9e2d232d 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -1319,12 +1319,12 @@ void PopupMenu::handleLink(const std::string &link, else if (link == "enable highlight" && mTab) { if (commandHandler) - commandHandler->invokeCommand("enablehighlight", "", mTab); + commandHandler->invokeCommand(COMMAND_ENABLEHIGHLIGHT, mTab); } else if (link == "disable highlight" && mTab) { if (commandHandler) - commandHandler->invokeCommand("disablehighlight", "", mTab); + commandHandler->invokeCommand(COMMAND_DISABLEHIGHLIGHT, mTab); } else if (link == "dont remove name" && mTab) { |