summaryrefslogtreecommitdiff
path: root/src/gui/widgets/chattab.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-10-17 22:07:24 +0300
committerAndrei Karas <akaras@inbox.ru>2011-10-17 22:07:24 +0300
commitd14bb7a27ee23cc83b3af1db2f1976eaaa55d78a (patch)
tree5f128768c66436eefd70632f02889607596609d4 /src/gui/widgets/chattab.cpp
parentf1e92aca00a4859047e83fab76220767b9a2f814 (diff)
parente93e6beb456d105987da3190c2a80847b6900081 (diff)
downloadmanaplus-d14bb7a27ee23cc83b3af1db2f1976eaaa55d78a.tar.gz
manaplus-d14bb7a27ee23cc83b3af1db2f1976eaaa55d78a.tar.bz2
manaplus-d14bb7a27ee23cc83b3af1db2f1976eaaa55d78a.tar.xz
manaplus-d14bb7a27ee23cc83b3af1db2f1976eaaa55d78a.zip
Merge branch 'master' into strippedstripped1.1.10.16
Conflicts: data/fonts/mplus-1p-bold.ttf data/fonts/mplus-1p-regular.ttf
Diffstat (limited to 'src/gui/widgets/chattab.cpp')
-rw-r--r--src/gui/widgets/chattab.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp
index 485e96e74..9a29ae204 100644
--- a/src/gui/widgets/chattab.cpp
+++ b/src/gui/widgets/chattab.cpp
@@ -281,21 +281,15 @@ void ChatTab::chatLog(std::string line, Own own,
{
if (getFlash() == 0)
{
- if (player_node)
- {
- if (chatWindow && chatWindow->findHighlight(tmp.text))
- setFlash(2);
- else
- setFlash(1);
- }
+ if (chatWindow && chatWindow->findHighlight(tmp.text))
+ setFlash(2);
else
- {
setFlash(1);
- }
}
}
- if (getAllowHighlight() && (this != getTabbedArea()->getSelectedTab()
+ if ((getAllowHighlight() || own == BY_GM)
+ && (this != getTabbedArea()->getSelectedTab()
|| (Client::getIsMinimized() || (!Client::getMouseFocused()
&& !Client::getInputFocused()))))
{