diff options
author | blue112 <bluesansdouze@gmail.com> | 2010-01-05 12:40:22 +0100 |
---|---|---|
committer | Freeyorp <Freeyorp101@hotmail.com> | 2010-01-06 00:58:22 +1300 |
commit | b29bab433479e24f2cee7c8daad7f51bd3f284ca (patch) | |
tree | 58bf1b96331521814b2ffa1ce1c7295c4dcb2ab3 | |
parent | 7ab42510dd649acbbbad68e7a66ed363589c67fb (diff) | |
download | mana-b29bab433479e24f2cee7c8daad7f51bd3f284ca.tar.gz mana-b29bab433479e24f2cee7c8daad7f51bd3f284ca.tar.bz2 mana-b29bab433479e24f2cee7c8daad7f51bd3f284ca.tar.xz mana-b29bab433479e24f2cee7c8daad7f51bd3f284ca.zip |
Party leader bold issue
Fixing the issue which makes that the party leader's name wasn't bold
-rw-r--r-- | src/gui/partywindow.cpp | 7 | ||||
-rw-r--r-- | src/gui/widgets/avatar.h | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/partywindow.cpp b/src/gui/partywindow.cpp index 151e148c..fc692427 100644 --- a/src/gui/partywindow.cpp +++ b/src/gui/partywindow.cpp @@ -46,8 +46,11 @@ PartyMember::~PartyMember() void PartyMember::setLeader(bool leader) { - mLeader = leader; - mAvatar->setDisplayBold(true); + mLeader = leader; + if(mLeader) + { + mAvatar->setDisplayBold(true); + } } diff --git a/src/gui/widgets/avatar.h b/src/gui/widgets/avatar.h index f5190be8..8225f395 100644 --- a/src/gui/widgets/avatar.h +++ b/src/gui/widgets/avatar.h @@ -67,7 +67,7 @@ public: bool getDisplayBold() const { return mDisplayBold; } - void setDisplayBold(bool displayBold) { mDisplayBold = displayBold; } + void setDisplayBold(bool displayBold) { mDisplayBold = displayBold; updateAvatarLabel(); } private: void updateAvatarLabel(); |