fixed keepign previous avatar when editing GxsId

This commit is contained in:
csoler 2021-02-10 21:54:34 +01:00
parent 43fbd6f76a
commit e4cb864f53

View File

@ -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)));
}
}