diff options
Diffstat (limited to 'kio/kio/kfileitem.cpp')
-rw-r--r-- | kio/kio/kfileitem.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kio/kio/kfileitem.cpp b/kio/kio/kfileitem.cpp index 38e3c0e3c..6207e66b9 100644 --- a/kio/kio/kfileitem.cpp +++ b/kio/kio/kfileitem.cpp @@ -660,6 +660,11 @@ TQPixmap KFileItem::pixmap( int _size, int _state ) const icon = libr_icon_geticon_bysize(handle, icon_size); if(icon == NULL) { + // Try loading the first icon as fallback + icon = libr_icon_geticon_byid(handle, 0); + } + if(icon == NULL) + { kdWarning() << "failed to obtain ELF icon: " << libr_errmsg() << endl; libr_close(handle); return p; |