summaryrefslogtreecommitdiff
path: root/src/gui/widgets/avatarlistbox.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-15 01:57:55 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-15 02:18:03 +0300
commit47f0e16e34cf22701b7c0670297bb7288a55310d (patch)
treed2b89f146e42a11d88e3e3b99685aa4a93c124c4 /src/gui/widgets/avatarlistbox.cpp
parent0c7a728ea5c63769c59e7cdbd13fc56cf3dd63fc (diff)
downloadmv-47f0e16e34cf22701b7c0670297bb7288a55310d.tar.gz
mv-47f0e16e34cf22701b7c0670297bb7288a55310d.tar.bz2
mv-47f0e16e34cf22701b7c0670297bb7288a55310d.tar.xz
mv-47f0e16e34cf22701b7c0670297bb7288a55310d.zip
Add option to hide ip addresses on screenshots.
Diffstat (limited to 'src/gui/widgets/avatarlistbox.cpp')
-rw-r--r--src/gui/widgets/avatarlistbox.cpp46
1 files changed, 33 insertions, 13 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp
index 5ac6721a5..0d35ad188 100644
--- a/src/gui/widgets/avatarlistbox.cpp
+++ b/src/gui/widgets/avatarlistbox.cpp
@@ -242,25 +242,45 @@ void AvatarListBox::draw(gcn::Graphics *gcnGraphics)
}
}
- if (mShowGender)
+ if (graphics->getSecure())
{
- switch (a->getGender())
+ if (mShowGender)
{
- case GENDER_FEMALE:
- text += strprintf(" \u2640 %s",
- a->getAdditionString().c_str());
- break;
- case GENDER_MALE:
- text += strprintf(" \u2642 %s",
- a->getAdditionString().c_str());
- break;
- default:
- break;
+ switch (a->getGender())
+ {
+ case GENDER_FEMALE:
+ text += strprintf(" \u2640 ");
+ break;
+ case GENDER_MALE:
+ text += strprintf(" \u2642 ");
+ break;
+ default:
+ break;
+ }
}
}
else
{
- text += a->getAdditionString();
+ if (mShowGender)
+ {
+ switch (a->getGender())
+ {
+ case GENDER_FEMALE:
+ text += strprintf(" \u2640 %s",
+ a->getAdditionString().c_str());
+ break;
+ case GENDER_MALE:
+ text += strprintf(" \u2642 %s",
+ a->getAdditionString().c_str());
+ break;
+ default:
+ break;
+ }
+ }
+ else
+ {
+ text += a->getAdditionString();
+ }
}
graphics->setColor(Theme::getThemeColor(Theme::TEXT));