From dded1355609c8f23281f78ec719b09b1693ea717 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 23 Aug 2014 14:50:14 +0300 Subject: Move chat command /closeall into actions. --- src/actions/chat.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/actions/chat.cpp') 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()) -- cgit v1.2.3-70-g09d2