diff options
author | Robert Griebl <rgriebl@trolltech.com> | 2009-10-15 15:08:03 (GMT) |
---|---|---|
committer | Robert Griebl <rgriebl@trolltech.com> | 2009-10-15 15:13:31 (GMT) |
commit | 8d1d511a51aa26b4d86f4cc83e1eed194441469f (patch) | |
tree | 67173bdd8654fda9d87f9d40bf5784bcef41f0e8 /src/gui | |
parent | 53a0caa5c3b4e2ae9cd496c82f3d033614b1384d (diff) | |
download | Qt-8d1d511a51aa26b4d86f4cc83e1eed194441469f.zip Qt-8d1d511a51aa26b4d86f4cc83e1eed194441469f.tar.gz Qt-8d1d511a51aa26b4d86f4cc83e1eed194441469f.tar.bz2 |
Fix themed icon loader on DEs other than KDE and Gnome.
Make sure that we at least try to load an icon via the "hicolor" theme.
Reviewed-by: Olivier Goffart
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/image/qiconloader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/image/qiconloader.cpp b/src/gui/image/qiconloader.cpp index 5412e11..e7620bd 100644 --- a/src/gui/image/qiconloader.cpp +++ b/src/gui/image/qiconloader.cpp @@ -78,6 +78,8 @@ static QString fallbackTheme() return X11->desktopVersion >= 4 ? QString::fromLatin1("oxygen") : QString::fromLatin1("crystalsvg"); + } else { + return QLatin1String("hicolor"); } #endif return QString(); |