]> cloud.milkyroute.net Git - dolphin.git/commit
Specify a fallback icon to QIcon::fromTheme()
authorWolfgang Bauer <wbauer@tmo.at>
Tue, 26 Apr 2016 14:11:26 +0000 (16:11 +0200)
committerWolfgang Bauer <wbauer@tmo.at>
Tue, 26 Apr 2016 14:11:26 +0000 (16:11 +0200)
commit44d4d2ea715719a08c639541530a5b330647297d
treef3a7241fba0bffed10608eb9c467ebc39169491a
parent130bc9fbc10348534695a0693eba04bb74bd09d0
Specify a fallback icon to QIcon::fromTheme()

The default fallback of QIcon::fromTheme() is QIcon(), i.e. a null icon.
Set the generic "unknown" icon as fallback to prevent missing icons for
filetypes that specify an icon name that doesn't exist.

This also gets rid of "QPixmap::scaled: Pixmap is a null pixmap"
warnings in that case.

BUG: 358958
BUG: 361034
FIXED-IN: 16.04.1
REVIEW: 127713
src/kitemviews/kstandarditemlistwidget.cpp