From a857f7d766f9cdce715825b35badeedac6d3f286 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Jan 2016 21:18:56 +0300 Subject: Move help window to top on first time open it from chat with commands like "?key" --- src/gui/widgets/tabs/chat/chattab.cpp | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v1.2.3-70-g09d2