From b29bab433479e24f2cee7c8daad7f51bd3f284ca Mon Sep 17 00:00:00 2001
From: blue112 <bluesansdouze@gmail.com>
Date: Tue, 5 Jan 2010 12:40:22 +0100
Subject: Party leader bold issue

Fixing the issue which makes that the party leader's name wasn't bold
---
 src/gui/partywindow.cpp  | 7 +++++--
 src/gui/widgets/avatar.h | 2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)

(limited to 'src/gui')

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();
-- 
cgit v1.2.3-70-g09d2