summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-18 17:02:13 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-18 17:02:13 +0300
commitdd828df46a661fbd0a24fbe540a4a585360be005 (patch)
tree7963e4739a4f6ace5d5c847edd4e679cc6c9bf87 /src/gui
parentea28a76cfbace0ccc8d25e523b410f2dea339423 (diff)
downloadplus-dd828df46a661fbd0a24fbe540a4a585360be005.tar.gz
plus-dd828df46a661fbd0a24fbe540a4a585360be005.tar.bz2
plus-dd828df46a661fbd0a24fbe540a4a585360be005.tar.xz
plus-dd828df46a661fbd0a24fbe540a4a585360be005.zip
add named commands with enum.
use some named commands from popupmenu.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/popupmenu.cpp4
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)
{