Browse Source

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 3 years ago
parent
commit
491c2e4503
2 changed files with 3 additions and 3 deletions
  1. 2
    2
      tdeio/tdeio/kurifilter.cpp
  2. 1
    1
      tdeio/tdeio/tdefileitem.cpp

+ 2
- 2
tdeio/tdeio/kurifilter.cpp View File

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

+ 1
- 1
tdeio/tdeio/tdefileitem.cpp View File

@@ -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