Browse Source

Merge pull request #4184

tux3 (1):
      fix: Friend list avatars not updating
pull/4158/merge
tux3 9 years ago
parent
commit
60e5375ef7
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
  1. 3
      src/widget/widget.cpp

3
src/widget/widget.cpp

@ -1024,6 +1024,9 @@ void Widget::addFriend(int friendId, const ToxPk& friendPk) @@ -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());

Loading…
Cancel
Save