From eb7594613397cd23be272fd10311d5ca24fe59ab Mon Sep 17 00:00:00 2001 From: Phenom Date: Sun, 30 Jul 2017 15:30:56 +0200 Subject: [PATCH] Fix Don't show Anonymous Icon when Images are disabled in ChatWidget --- retroshare-gui/src/gui/chat/ChatWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/chat/ChatWidget.cpp b/retroshare-gui/src/gui/chat/ChatWidget.cpp index 17dd367cc..bc7e21de6 100644 --- a/retroshare-gui/src/gui/chat/ChatWidget.cpp +++ b/retroshare-gui/src/gui/chat/ChatWidget.cpp @@ -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());