mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 16:39:43 -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;
|
mAvatar = avatar;
|
||||||
|
|
||||||
if (!mAvatar.isNull()) {
|
if (!mAvatar.isNull()) {
|
||||||
ui->avatarLabel->setPixmap(mAvatar);
|
ui->avatarLabel->setPicture(avatar);
|
||||||
} else {
|
} else {
|
||||||
// we need to use the default pixmap here, generated from the ID
|
// 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