<table><tr><td style="">broulik created this revision.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D4900" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When an icon failed to load, show the "unknown" icon instead of a gap.<br />
We don't want to check for icon availability in the model for performance reasons but only once the delegate is created (when it comes into view).</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>GridView doesn't recycle items, so when the item goes out of view and comes back, it will essentially re-evaluate this.<br />
Downside, if we failed to load an icon but have a previewer, we won't show the preview now. I don't think that's a common scenario - how come we can have a previewer for a format that is so exotic that we don't even have an icon for it?</p>

<p>Situations for when this can happen:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">.desktop file with rubbish Icon or not installed icon</li>
<li class="remarkup-list-item">icon for mimetype for which we don't have an icon (some exotic mimetypes, kio iirc always sets icon name to one deduced from the mime type)</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D4900" rel="noreferrer">https://phabricator.kde.org/D4900</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>containments/desktop/package/contents/ui/FolderItemDelegate.qml</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>broulik, Plasma, hein<br /><strong>Cc: </strong>plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol<br /></div>