summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-27 15:29:50 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-27 15:29:50 +0300
commitb3f08b33aff591346efb4a94c4cfccdd7b120e9f (patch)
tree34501eda3aeacaa09f385d59a00237b9f1d89b3d /src/actions
parent9de5536077107f36185c1132cd0cbcdbeefffabb (diff)
downloadmv-b3f08b33aff591346efb4a94c4cfccdd7b120e9f.tar.gz
mv-b3f08b33aff591346efb4a94c4cfccdd7b120e9f.tar.bz2
mv-b3f08b33aff591346efb4a94c4cfccdd7b120e9f.tar.xz
mv-b3f08b33aff591346efb4a94c4cfccdd7b120e9f.zip
Move chat command /dontremovename 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 9c34b9a5a..27d80bf00 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -598,4 +598,16 @@ impHandler(disableHighlight)
return false;
}
+impHandler(dontRemoveName)
+{
+ if (event.tab)
+ {
+ event.tab->setRemoveNames(false);
+ if (chatWindow)
+ chatWindow->saveState();
+ return true;
+ }
+ return false;
+}
+
} // namespace Actions
diff --git a/src/actions/commands.h b/src/actions/commands.h
index e06663660..a00c844a0 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -61,6 +61,7 @@ namespace Actions
decHandler(execute);
decHandler(enableHighlight);
decHandler(disableHighlight);
+ decHandler(dontRemoveName);
} // namespace Actions
#undef decHandler