summaryrefslogtreecommitdiff
path: root/src/gui/partywindow.cpp
diff options
context:
space:
mode:
authorFreeyorp <Freeyorp101@hotmail.com>2010-01-06 01:00:07 +1300
committerFreeyorp <Freeyorp101@hotmail.com>2010-01-06 01:03:30 +1300
commit5bec9f57404e9631e73ef3cf9bbb00098e818fa5 (patch)
treea7e666acace4f1674b75b66548b3064efc18c657 /src/gui/partywindow.cpp
parentb29bab433479e24f2cee7c8daad7f51bd3f284ca (diff)
downloadmana-5bec9f57404e9631e73ef3cf9bbb00098e818fa5.tar.gz
mana-5bec9f57404e9631e73ef3cf9bbb00098e818fa5.tar.bz2
mana-5bec9f57404e9631e73ef3cf9bbb00098e818fa5.tar.xz
mana-5bec9f57404e9631e73ef3cf9bbb00098e818fa5.zip
setLeader should update when being unset, too.
Also only do an update when there is a change being applied
Diffstat (limited to 'src/gui/partywindow.cpp')
-rw-r--r--src/gui/partywindow.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/partywindow.cpp b/src/gui/partywindow.cpp
index fc692427..72e983d5 100644
--- a/src/gui/partywindow.cpp
+++ b/src/gui/partywindow.cpp
@@ -46,11 +46,10 @@ PartyMember::~PartyMember()
void PartyMember::setLeader(bool leader)
{
- mLeader = leader;
- if(mLeader)
- {
- mAvatar->setDisplayBold(true);
- }
+ if (mLeader != leader) {
+ mLeader = leader;
+ mAvatar->setDisplayBold(leader);
+ }
}