Debug warnings for broken icons
faure at kde.org
Tue Feb 12 18:08:13 GMT 2008
On Wednesday 19 December 2007, Urs Wolfer wrote:
> For the moment, I prefer the way to not cache broken
> icons. This makes it way easier to find and fix such icons. Of course it
> would be nice if we have a #define when we compile kdelibs in debug mode (is
> that possible?). Then we could just not insert it into the cache when we are
> in debug mode.
Actually we should never insert unknown icons into the cache, otherwise we cannot
honour the "canReturnNull=true" argument of loadIcon().... I'm in the process
of fixing this [and writing related unit tests].
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the kde-core-devel