diff --git a/src/dfm-base/file/local/desktopfileinfo.cpp b/src/dfm-base/file/local/desktopfileinfo.cpp index bb225b0447..6bd680e0a8 100644 --- a/src/dfm-base/file/local/desktopfileinfo.cpp +++ b/src/dfm-base/file/local/desktopfileinfo.cpp @@ -121,10 +121,7 @@ QStringList DesktopFileInfo::desktopCategories() const QIcon DesktopFileInfo::fileIcon() { if (Q_LIKELY(!d->icon.isNull())) { - if (Q_LIKELY(!d->icon.availableSizes().isEmpty())) - return d->icon; - - d->icon = QIcon(); + return d->icon; } const QString &iconName = this->nameOf(NameInfoType::kIconName);