Remove warnings about missing embedded ELF icons

Add file name for which the issue occurs into debug message

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko il y a 8 ans
Parent 04255418ec
révision 491c2e4503

@ -217,7 +217,7 @@ TQString KURIFilterData::iconName()
if((handle = libr_open(const_cast<char*>(m_pURI.path().ascii()), access)) == NULL)
{
kdWarning() << "failed to open file" << m_pURI.path() << endl;
kdWarning() << "failed to open file " << m_pURI.path() << endl;
libr_can_continue = 0;
}
@ -234,7 +234,7 @@ TQString KURIFilterData::iconName()
if(!get_iconlist(handle, &icons))
{
// Failed to obtain a list of ELF icons
kdWarning() << "failed to obtain ELF icon: " << libr_errmsg() << endl;
kdDebug() << "failed to obtain ELF icon from " << m_pURI.path() << ": " << libr_errmsg() << endl;
// See if there is a system icon we can use
TQString sysIconName = elf_get_resource(handle, ".metadata_sysicon");

@ -730,7 +730,7 @@ TQPixmap KFileItem::pixmap( int _size, int _state ) const
if(!get_iconlist(handle, &icons))
{
// Failed to obtain a list of ELF icons
kdWarning() << "failed to obtain ELF icon: " << libr_errmsg() << endl;
kdDebug() << "failed to obtain ELF icon from " << url.path() << ": " << libr_errmsg() << endl;
// See if there is a system icon we can use
TQString sysIconName = elf_get_resource(handle, ".metadata_sysicon");

Chargement…
Annuler
Enregistrer