diff options
Diffstat (limited to 'src')
-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(); |