summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-11 15:48:13 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-11 15:48:13 +0300
commit1db8072c112d0bc5b3cbf3b3151dfa8be9419189 (patch)
tree6fa6980acc0db8f1ee61a0b059bec1215fdc4731 /src/actions
parent8de44a41862b3a0ff714e68169b6443a2a06b3aa (diff)
downloadplus-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.cpp9
-rw-r--r--src/actions/chat.h1
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