Update icon if it couldn't be determined upfront (.desktop file on slow mount)

This requires an up-to-date kdelibs >= 4.10.

CCBUG: 290666
This commit is contained in:
David Faure 2013-03-27 14:32:08 +01:00
parent 02f4a69f58
commit b8c9aa55ff

View file

@ -996,7 +996,7 @@ bool KFileItemModelRolesUpdater::applyResolvedRoles(const KFileItem& item, Resol
const bool resolveAll = (hint == ResolveAll);
bool mimeTypeChanged = false;
if (!item.isMimeTypeKnown()) {
if (!item.isMimeTypeKnown() || !item.isFinalIconKnown()) {
item.determineMimeType();
mimeTypeChanged = true;
}