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/ChatList/ChatListRecentItem.cpp
parent3e154a0c3eae309acecdfe7524cfe1e1ca95386a (diff)
downloadswift-contrib-d78c4858afaaf856ec95d45adf59916b6eaf032d.zip
swift-contrib-d78c4858afaaf856ec95d45adf59916b6eaf032d.tar.bz2
Fix roster avatars
Diffstat (limited to 'Swift/QtUI/ChatList/ChatListRecentItem.cpp')
-rw-r--r--Swift/QtUI/ChatList/ChatListRecentItem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/ChatList/ChatListRecentItem.cpp b/Swift/QtUI/ChatList/ChatListRecentItem.cpp
index e7c9599..6c9807f 100644
--- a/Swift/QtUI/ChatList/ChatListRecentItem.cpp
+++ b/Swift/QtUI/ChatList/ChatListRecentItem.cpp
@@ -25,7 +25,7 @@ QVariant ChatListRecentItem::data(int role) const {
case Qt::BackgroundColorRole: return backgroundColor_;
case Qt::ToolTipRole: return isContact() ? toolTipString() : QVariant();
case StatusTextRole: return statusText_;*/
- case AvatarRole: return chat_.avatarPath.string().c_str();
+ case AvatarRole: return QVariant(QString(chat_.avatarPath.string().c_str()));
case PresenceIconRole: return getPresenceIcon();
default: return QVariant();
}