diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-01 21:49:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-01 21:49:35 +0300 |
commit | ec552e6430ac86b1234c9a7798bf4e028a3c78c0 (patch) | |
tree | 10cd93cf86dca5ce2074b362dc7e4db1c0e2b03d /src/gui/chatwindow.cpp | |
parent | 170aae70566003a30ab1f6f936364484f6a0a097 (diff) | |
download | mv-ec552e6430ac86b1234c9a7798bf4e028a3c78c0.tar.gz mv-ec552e6430ac86b1234c9a7798bf4e028a3c78c0.tar.bz2 mv-ec552e6430ac86b1234c9a7798bf4e028a3c78c0.tar.xz mv-ec552e6430ac86b1234c9a7798bf4e028a3c78c0.zip |
Set secure font in chat tab name if need.
Diffstat (limited to 'src/gui/chatwindow.cpp')
-rw-r--r-- | src/gui/chatwindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp index 1712a3f16..a575b7054 100644 --- a/src/gui/chatwindow.cpp +++ b/src/gui/chatwindow.cpp @@ -34,6 +34,7 @@ #include "spellshortcut.h" #include "sound.h" +#include "gui/gui.h" #include "gui/setup.h" #include "gui/sdlinput.h" #include "gui/theme.h" @@ -1004,6 +1005,8 @@ ChatTab *ChatWindow::addWhisperTab(const std::string &nick, bool switchTo) else { ret = new WhisperTab(nick); + if (gui && !player_relations.isGoodName(nick)) + ret->setLabelFont(gui->getSecureFont()); mWhispers[tempNick] = ret; if (config.getBoolValue("showChatHistory")) ret->loadFromLogFile(nick); |