From 055c41bc30de6901b63d14dbc50e384de5779d16 Mon Sep 17 00:00:00 2001 From: tux3 Date: Fri, 17 Feb 2017 16:42:40 +0100 Subject: [PATCH] fix: Friend list avatars not updating Possibly related to #4172 --- src/widget/widget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index 632b5a17e..71b3c164a 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -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());