mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 23:49:35 -05:00
fixed keepign previous avatar when editing GxsId
This commit is contained in:
parent
43fbd6f76a
commit
e4cb864f53
@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user