If the split-view is used and/or the Folders Panel is activated
it might happen that the "unknown"-icon of an item is shown instead
of the correct icon. The root-cause is that one model might already
have been resolved the MIME-type of a KFileItem while the other
model has not updated the icon yet. As KFileItems are shared the
check whether the MIME-type has been resolved is wrong. As at that
stage it is assured anyhow that the MIME-type is known just
applying the icon-name in any case won't slow down the performance.
data = rolesData(item);
}
- if (mimeTypeChanged || m_clearPreviews) {
- data.insert("iconName", item.iconName());
- }
+ data.insert("iconName", item.iconName());
+
if (m_clearPreviews) {
data.insert("iconPixmap", QString());
}