diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-11 15:48:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-11 15:48:13 +0300 |
commit | 1db8072c112d0bc5b3cbf3b3151dfa8be9419189 (patch) | |
tree | 6fa6980acc0db8f1ee61a0b059bec1215fdc4731 /src/actions | |
parent | 8de44a41862b3a0ff714e68169b6443a2a06b3aa (diff) | |
download | plus-1db8072c112d0bc5b3cbf3b3151dfa8be9419189.tar.gz plus-1db8072c112d0bc5b3cbf3b3151dfa8be9419189.tar.bz2 plus-1db8072c112d0bc5b3cbf3b3151dfa8be9419189.tar.xz plus-1db8072c112d0bc5b3cbf3b3151dfa8be9419189.zip |
Add chat command for select debug tab.
New chat command: /debugtab
Alias: /debugchattab
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/chat.cpp | 9 | ||||
-rw-r--r-- | src/actions/chat.h | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp index d5b3d9475..0e719fb75 100644 --- a/src/actions/chat.cpp +++ b/src/actions/chat.cpp @@ -467,7 +467,14 @@ impHandler0(clearChat) impHandler0(chatGeneralTab) { if (chatWindow) - chatWindow->selectGeneralTab(); + chatWindow->selectTabByType(ChatTabType::INPUT); + return true; +} + +impHandler0(chatDebugTab) +{ + if (chatWindow) + chatWindow->selectTabByType(ChatTabType::DEBUG); return true; } diff --git a/src/actions/chat.h b/src/actions/chat.h index ccad18739..6f6708a99 100644 --- a/src/actions/chat.h +++ b/src/actions/chat.h @@ -50,6 +50,7 @@ namespace Actions decHandler(addText); decHandler(clearChat); decHandler(chatGeneralTab); + decHandler(chatDebugTab); } // namespace Actions #undef decHandler |