diff --git a/retroshare-gui/src/gui/Identity/IdDetailsDialog.cpp b/retroshare-gui/src/gui/Identity/IdDetailsDialog.cpp index 3d8f36d4c..89f64cf43 100644 --- a/retroshare-gui/src/gui/Identity/IdDetailsDialog.cpp +++ b/retroshare-gui/src/gui/Identity/IdDetailsDialog.cpp @@ -153,12 +153,17 @@ void IdDetailsDialog::insertIdDetails(uint32_t token) //ui->lineEdit_GpgHash->setText(QString::fromStdString(data.mPgpIdHash.toStdString())); ui->lineEdit_GpgId->setText(QString::fromStdString(data.mPgpId.toStdString())); - QPixmap pix = QPixmap::fromImage(GxsIdDetails::makeDefaultIcon(RsGxsId(data.mMeta.mGroupId))) ; + QPixmap pixmap; + + if(data.mImage.mSize > 0 && pixmap.loadFromData(data.mImage.mData, data.mImage.mSize, "PNG")) + ui->avatarLabel->setPixmap(pixmap); + else + pixmap = QPixmap::fromImage(GxsIdDetails::makeDefaultIcon(RsGxsId(data.mMeta.mGroupId))) ; + ui->avatarLabel->setPixmap(pixmap); // we need to use the default pixmap here, generated from the ID + #ifdef ID_DEBUG std::cerr << "Setting header frame image : " << pix.width() << " x " << pix.height() << std::endl; #endif - ui->avatarLabel->setPixmap(pix); - if (data.mPgpKnown) { diff --git a/retroshare-gui/src/gui/Identity/IdEditDialog.ui b/retroshare-gui/src/gui/Identity/IdEditDialog.ui index fe7c11b9e..d3dc705c3 100644 --- a/retroshare-gui/src/gui/Identity/IdEditDialog.ui +++ b/retroshare-gui/src/gui/Identity/IdEditDialog.ui @@ -197,7 +197,7 @@ - + @@ -230,47 +230,30 @@ - - - 2 + + + Set Avatar - - - - Set Avatar - - - - - - - - 24 - 16777215 - - - - Remove Avatar - - - - - - - :/images/delete.png:/images/delete.png - - - - + - + + + Remove Avatar + + + Remove + + + + + Qt::Vertical - 138 + 20 40