From e4cb864f53579de0368e5d1a2e6b0ae136a522d5 Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 10 Feb 2021 21:54:34 +0100 Subject: [PATCH] fixed keepign previous avatar when editing GxsId --- retroshare-gui/src/gui/Identity/IdEditDialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/retroshare-gui/src/gui/Identity/IdEditDialog.cpp b/retroshare-gui/src/gui/Identity/IdEditDialog.cpp index cf9a87daf..1a710f15a 100644 --- a/retroshare-gui/src/gui/Identity/IdEditDialog.cpp +++ b/retroshare-gui/src/gui/Identity/IdEditDialog.cpp @@ -209,10 +209,10 @@ void IdEditDialog::setAvatar(const QPixmap &avatar) mAvatar = avatar; if (!mAvatar.isNull()) { - ui->avatarLabel->setPixmap(mAvatar); - } else { + ui->avatarLabel->setPicture(avatar); + } else { // we need to use the default pixmap here, generated from the ID - ui->avatarLabel->setPixmap(GxsIdDetails::makeDefaultIcon(RsGxsId(mEditGroup.mMeta.mGroupId))); + ui->avatarLabel->setPicture(GxsIdDetails::makeDefaultIcon(RsGxsId(mEditGroup.mMeta.mGroupId))); } }