summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-11 15:56:29 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-11 15:56:29 +0300
commitca108c26aa632e54993c11861442800277efa45d (patch)
tree2c17e4ed6803b1d72b628d374186068981a7995c /src/actions
parentdb5ac7e5ac2642a2df29dcd6de3d6fba5a964b47 (diff)
downloadplus-ca108c26aa632e54993c11861442800277efa45d.tar.gz
plus-ca108c26aa632e54993c11861442800277efa45d.tar.bz2
plus-ca108c26aa632e54993c11861442800277efa45d.tar.xz
plus-ca108c26aa632e54993c11861442800277efa45d.zip
Add chat command for select trade tab.
New chat command: /tradetab Alias: /tradechattab
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/chat.cpp7
-rw-r--r--src/actions/chat.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp
index ce54b72db..f59bc9a1b 100644
--- a/src/actions/chat.cpp
+++ b/src/actions/chat.cpp
@@ -485,4 +485,11 @@ impHandler0(chatBattleTab)
return true;
}
+impHandler0(chatTradeTab)
+{
+ if (chatWindow)
+ chatWindow->selectTabByType(ChatTabType::TRADE);
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/chat.h b/src/actions/chat.h
index b53b069b3..dafc853aa 100644
--- a/src/actions/chat.h
+++ b/src/actions/chat.h
@@ -52,6 +52,7 @@ namespace Actions
decHandler(chatGeneralTab);
decHandler(chatDebugTab);
decHandler(chatBattleTab);
+ decHandler(chatTradeTab);
} // namespace Actions
#undef decHandler