diff options
| author | Alexander Lohnau <[email protected]> | 2020-11-12 10:01:08 +0100 |
|---|---|---|
| committer | Alexander Lohnau <[email protected]> | 2020-11-12 17:16:50 +0100 |
| commit | 1208f86696bde5011f57b1b577d149a1013d2553 (patch) | |
| tree | 7c678e84ab0b99ef44298282194c0255b4b8d930 /src | |
| parent | 208d733ae3daee895caa17d5b4cba605d5224c8e (diff) | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/kitemviews/kstandarditemlistwidget.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kitemviews/kstandarditemlistwidget.cpp b/src/kitemviews/kstandarditemlistwidget.cpp index 83dc0394d..73744b385 100644 --- a/src/kitemviews/kstandarditemlistwidget.cpp +++ b/src/kitemviews/kstandarditemlistwidget.cpp @@ -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; } |
