diff --git a/messagecore/src/attachment/attachmentpropertiesdialog.cpp b/messagecore/src/attachment/attachmentpropertiesdialog.cpp --- a/messagecore/src/attachment/attachmentpropertiesdialog.cpp +++ b/messagecore/src/attachment/attachmentpropertiesdialog.cpp @@ -130,12 +130,8 @@ { QMimeDatabase db; const QMimeType mimeType = db.mimeTypeForName(type); - QPixmap pix; - if (mimeType.isValid()) { - pix = KIconLoader::global()->loadMimeTypeIcon(mimeType.iconName(), KIconLoader::Desktop); - } else { - pix = QIcon::fromTheme(QStringLiteral("unknown")).pixmap(q->style()->pixelMetric(QStyle::PM_MessageBoxIconSize)); - } + QPixmap pix = QIcon::fromTheme(mimeType.iconName(), QIcon::fromTheme(QStringLiteral("unknown"))).pixmap(q->style()->pixelMetric(QStyle::PM_MessageBoxIconSize)); + if (mReadOnly) { uiReadOnly->mimeIcon->setPixmap(pix); } else {