Merge pull request #973 from PhenomRetroShare/Fix_DontShowAnonIconWhenImageDisabled

Fix Don't show Anonymous Icon when Images are disabled in ChatWidget
This commit is contained in:
csoler 2017-07-30 21:29:37 +02:00 committed by GitHub
commit 0636142a41

View File

@ -1016,7 +1016,7 @@ void ChatWidget::addChatMsg(bool incoming, const QString &name, const RsGxsId gx
QString strGxsId = QString::fromStdString(gxsId.toStdString());
rsIdentity->getIdDetails(gxsId, details);
bool isUnsigned = !(details.mFlags & RS_IDENTITY_FLAGS_PGP_LINKED);
if(isUnsigned) {
if(isUnsigned && ui->textBrowser->getShowImages()) {
QIcon icon = QIcon(":/icons/anonymous_blue_128.png");
int height = ui->textBrowser->fontMetrics().height()*0.8;
QImage image(icon.pixmap(height,height).toImage());