diff options
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/commands.cpp | 12 | ||||
-rw-r--r-- | src/actions/commands.h | 1 |
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 |