summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/chat/chattab.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-25 21:18:56 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-25 21:18:56 +0300
commita857f7d766f9cdce715825b35badeedac6d3f286 (patch)
treee72c3767f60632c7fce861ea2f8d531f2f8a420d /src/gui/widgets/tabs/chat/chattab.cpp
parent64f2b2ad95684d871034a14c5af9a0650660db2b (diff)
downloadplus-a857f7d766f9cdce715825b35badeedac6d3f286.tar.gz
plus-a857f7d766f9cdce715825b35badeedac6d3f286.tar.bz2
plus-a857f7d766f9cdce715825b35badeedac6d3f286.tar.xz
plus-a857f7d766f9cdce715825b35badeedac6d3f286.zip
Move help window to top on first time open it from chat with commands like "?key"
Diffstat (limited to 'src/gui/widgets/tabs/chat/chattab.cpp')
-rw-r--r--src/gui/widgets/tabs/chat/chattab.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/tabs/chat/chattab.cpp b/src/gui/widgets/tabs/chat/chattab.cpp
index cb1566092..e91eda843 100644
--- a/src/gui/widgets/tabs/chat/chattab.cpp
+++ b/src/gui/widgets/tabs/chat/chattab.cpp
@@ -433,7 +433,10 @@ void ChatTab::handleCommandStr(const std::string &msg)
void ChatTab::handleHelp(const std::string &msg)
{
if (helpWindow)
+ {
helpWindow->search(msg);
+ helpWindow->requestMoveToTop();
+ }
}
bool ChatTab::handleCommands(const std::string &type, const std::string &args)