1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge pull request #4184

tux3 (1):
      fix: Friend list avatars not updating
This commit is contained in:
tux3 2017-02-19 00:46:18 +01:00
commit 60e5375ef7
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -1024,6 +1024,9 @@ void Widget::addFriend(int friendId, const ToxPk& friendPk)
connect(widget, &FriendWidget::copyFriendIdToClipboard, this, &Widget::copyFriendIdToClipboard);
connect(widget, &FriendWidget::contextMenuCalled, widget, &FriendWidget::onContextMenuCalled);
connect(widget, SIGNAL(removeFriend(int)), this, SLOT(removeFriend(int)));
Core* core = Core::getInstance();
connect(core, &Core::friendAvatarChanged, widget, &FriendWidget::onAvatarChange);
connect(core, &Core::friendAvatarRemoved, widget, &FriendWidget::onAvatarRemoved);
// Try to get the avatar from the cache
QPixmap avatar = Nexus::getProfile()->loadAvatar(friendPk.toString());