mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
Fix qrc icon
Apparently the icon was not null, because the mimetype was known. But there was no icon associated with it and we got an icon which is not null, but has a null pixmap.
This commit is contained in:
parent
208d733ae3
commit
1208f86696
|
@ -1488,7 +1488,8 @@ QPixmap KStandardItemListWidget::pixmapForIcon(const QString& name, const QStrin
|
|||
if (icon.isNull()) {
|
||||
icon = QIcon(name);
|
||||
}
|
||||
if (icon.isNull()) {
|
||||
if (icon.isNull()
|
||||
|| icon.pixmap(size / qApp->devicePixelRatio(), size / qApp->devicePixelRatio(), mode).isNull()) {
|
||||
icon = fallbackIcon;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue