summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-27 15:21:32 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-27 15:21:32 +0300
commit9de5536077107f36185c1132cd0cbcdbeefffabb (patch)
tree085c92fba0a9d835096ba4c736caf1cb4c9d01ee /src/actions
parentfbf45af162f9a2eecd3c27c8729bd9c811dbe793 (diff)
downloadmanaverse-9de5536077107f36185c1132cd0cbcdbeefffabb.tar.gz
manaverse-9de5536077107f36185c1132cd0cbcdbeefffabb.tar.bz2
manaverse-9de5536077107f36185c1132cd0cbcdbeefffabb.tar.xz
manaverse-9de5536077107f36185c1132cd0cbcdbeefffabb.zip
Move chat command /disablehightlight into actions.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/commands.cpp12
-rw-r--r--src/actions/commands.h1
2 files changed, 13 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 779d09dce..9c34b9a5a 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -586,4 +586,16 @@ impHandler(enableHighlight)
return false;
}
+impHandler(disableHighlight)
+{
+ if (event.tab)
+ {
+ event.tab->setAllowHighlight(false);
+ if (chatWindow)
+ chatWindow->saveState();
+ return true;
+ }
+ return false;
+}
+
} // namespace Actions
diff --git a/src/actions/commands.h b/src/actions/commands.h
index d95050520..e06663660 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -60,6 +60,7 @@ namespace Actions
decHandler(openUrl);
decHandler(execute);
decHandler(enableHighlight);
+ decHandler(disableHighlight);
} // namespace Actions
#undef decHandler