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>
(cherry picked from commit 491c2e4503)
pull/16/head
Slávek Banko 9 years ago
parent e7ba529948
commit 29bb34d2ff

@ -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");

Loading…
Cancel
Save