diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-01 23:16:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-01 23:16:44 +0300 |
commit | d0d120837ccf0a20c6d43a1193f257cfaeb194f6 (patch) | |
tree | 7efe3d94117946437d52929e69dfc2f0f31737a5 /src/gui/tradewindow.cpp | |
parent | ec552e6430ac86b1234c9a7798bf4e028a3c78c0 (diff) | |
download | plus-d0d120837ccf0a20c6d43a1193f257cfaeb194f6.tar.gz plus-d0d120837ccf0a20c6d43a1193f257cfaeb194f6.tar.bz2 plus-d0d120837ccf0a20c6d43a1193f257cfaeb194f6.tar.xz plus-d0d120837ccf0a20c6d43a1193f257cfaeb194f6.zip |
Change trade window font to secure font if need.
Diffstat (limited to 'src/gui/tradewindow.cpp')
-rw-r--r-- | src/gui/tradewindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/tradewindow.cpp b/src/gui/tradewindow.cpp index 6ed09669a..e7e74fdbb 100644 --- a/src/gui/tradewindow.cpp +++ b/src/gui/tradewindow.cpp @@ -27,8 +27,10 @@ #include "item.h" #include "localplayer.h" #include "playerinfo.h" +#include "playerrelations.h" #include "units.h" +#include "gui/gui.h" #include "gui/inventorywindow.h" #include "gui/itemamountwindow.h" #include "gui/setup.h" @@ -440,4 +442,6 @@ void TradeWindow::initTrade(std::string nick) } } clear(); + if (!player_relations.isGoodName(nick)) + setCaptionFont(gui->getSecureFont()); } |