summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-23 14:50:14 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-23 14:50:14 +0300
commitdded1355609c8f23281f78ec719b09b1693ea717 (patch)
tree00238316177f9099d2e58cd639269a269a2dd0d0 /src/actions
parent44df89ce3e77f4f5e93555260f3eabab7621f77d (diff)
downloadplus-dded1355609c8f23281f78ec719b09b1693ea717.tar.gz
plus-dded1355609c8f23281f78ec719b09b1693ea717.tar.bz2
plus-dded1355609c8f23281f78ec719b09b1693ea717.tar.xz
plus-dded1355609c8f23281f78ec719b09b1693ea717.zip
Move chat command /closeall into actions.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/chat.cpp11
-rw-r--r--src/actions/chat.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp
index 5b70c2085..9895d8388 100644
--- a/src/actions/chat.cpp
+++ b/src/actions/chat.cpp
@@ -112,6 +112,17 @@ impHandler0(closeChatTab)
return false;
}
+impHandler0(closeAllChatTabs)
+{
+ if (chatWindow)
+ {
+ chatWindow->removeAllWhispers();
+ chatWindow->saveState();
+ return true;
+ }
+ return false;
+}
+
impHandler0(scrollChatUp)
{
if (chatWindow && chatWindow->isWindowVisible())
diff --git a/src/actions/chat.h b/src/actions/chat.h
index ed7ef97ed..bdb62e209 100644
--- a/src/actions/chat.h
+++ b/src/actions/chat.h
@@ -31,6 +31,7 @@ namespace Actions
decHandler(prevChatTab);
decHandler(nextChatTab);
decHandler(closeChatTab);
+ decHandler(closeAllChatTabs);
decHandler(scrollChatUp);
decHandler(scrollChatDown);
} // namespace Actions