diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-29 01:18:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-03-29 01:18:21 +0300 |
commit | b0ce837b66ddc34a9b2a9346291b252f748c577f (patch) | |
tree | 6bcd1c475d48e2cb12972556a1f62eaf9c392048 /src/gui/widgets | |
parent | f474ad785704a904fd2b95d56fa67cccf69c876f (diff) | |
download | plus-b0ce837b66ddc34a9b2a9346291b252f748c577f.tar.gz plus-b0ce837b66ddc34a9b2a9346291b252f748c577f.tar.bz2 plus-b0ce837b66ddc34a9b2a9346291b252f748c577f.tar.xz plus-b0ce837b66ddc34a9b2a9346291b252f748c577f.zip |
Add option to auto hide chat window (chat window visible by default)
Option in chat \ Auto hide chat window.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/chattab.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp index be6a31164..5f1b02d98 100644 --- a/src/gui/widgets/chattab.cpp +++ b/src/gui/widgets/chattab.cpp @@ -311,9 +311,17 @@ void ChatTab::chatLog(std::string line, Own own, && !Client::getInputFocused())))) { if (own == BY_GM) + { + if (chatWindow) + chatWindow->unHideWindow(); sound.playGuiSound(SOUND_GLOBAL); + } else if (own != BY_SERVER) + { + if (chatWindow) + chatWindow->unHideWindow(); playNewMessageSound(); + } } } } |