diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-25 21:18:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-25 21:18:56 +0300 |
commit | a857f7d766f9cdce715825b35badeedac6d3f286 (patch) | |
tree | e72c3767f60632c7fce861ea2f8d531f2f8a420d /src/gui/widgets/tabs/chat | |
parent | 64f2b2ad95684d871034a14c5af9a0650660db2b (diff) | |
download | manaplus-a857f7d766f9cdce715825b35badeedac6d3f286.tar.gz manaplus-a857f7d766f9cdce715825b35badeedac6d3f286.tar.bz2 manaplus-a857f7d766f9cdce715825b35badeedac6d3f286.tar.xz manaplus-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')
-rw-r--r-- | src/gui/widgets/tabs/chat/chattab.cpp | 3 |
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) |