<table><tr><td style="">fvogt added a comment.
</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/D7318" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>The underlying issue is that KIconLoader's implementation of isNull (in virtual_hook) is not really meaningful.<br />
In cases where a name for a nonexistent icon is passed, pixmap will draw the "unknown" icon, but isNull still returns true.</p>
<p>So the question is whether this is intentional or not. The API doesn't really make that clear.</p>
<p>If isNull should return false iff pixmap returns something other than an empty pixmap, the implementation for KIconLoader<br />
would probably always return false...</p>
<p>In any case, I still think this diff isn't wrong by itself as the drawing of the pixmap is still unconditional and so should be reflected<br />
in the text margin.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7318" rel="noreferrer">https://phabricator.kde.org/D7318</a></div></div><br /><div><strong>To: </strong>fvogt, Frameworks<br /><strong>Cc: </strong>cfeck, Frameworks<br /></div>