summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-07-09 19:15:47 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-07-09 19:15:47 (GMT)
commitd78c4858afaaf856ec95d45adf59916b6eaf032d (patch)
tree5c58f8553ddf3afd05255a0c7bb3b582b63700cc /Swift/QtUI/Roster
parent3e154a0c3eae309acecdfe7524cfe1e1ca95386a (diff)
downloadswift-contrib-d78c4858afaaf856ec95d45adf59916b6eaf032d.zip
swift-contrib-d78c4858afaaf856ec95d45adf59916b6eaf032d.tar.bz2
Fix roster avatars
Diffstat (limited to 'Swift/QtUI/Roster')
-rw-r--r--Swift/QtUI/Roster/RosterDelegate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/Roster/RosterDelegate.cpp b/Swift/QtUI/Roster/RosterDelegate.cpp
index 6914fc3..1adb9e3 100644
--- a/Swift/QtUI/Roster/RosterDelegate.cpp
+++ b/Swift/QtUI/Roster/RosterDelegate.cpp
@@ -64,7 +64,7 @@ void RosterDelegate::paintContact(QPainter* painter, const QStyleOptionViewItem&
QColor nameColor = index.data(Qt::TextColorRole).value<QColor>();
QString avatarPath;
if (index.data(AvatarRole).isValid() && !index.data(AvatarRole).value<QString>().isNull()) {
- QString avatarPath = index.data(AvatarRole).value<QString>();
+ avatarPath = index.data(AvatarRole).value<QString>();
}
QIcon presenceIcon = index.data(PresenceIconRole).isValid() && !index.data(PresenceIconRole).value<QIcon>().isNull()
? index.data(PresenceIconRole).value<QIcon>()