diff options
Diffstat (limited to 'src/qtraylabel.cpp')
-rw-r--r-- | src/qtraylabel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qtraylabel.cpp b/src/qtraylabel.cpp index a29e442..34284bd 100644 --- a/src/qtraylabel.cpp +++ b/src/qtraylabel.cpp @@ -32,6 +32,7 @@ #include "trace.h" #include "qtraylabel.h" +#include <kiconloader.h> #include <kglobal.h> #include <X11/cursorfont.h> @@ -620,8 +621,7 @@ void QTrayLabel::handleIconChange(void) QImage image; if (!window_icon) { - if (!image.load(QString(ICONS_PATH) + "/question.png")) - image.load(qApp->applicationDirPath() + "/icons/question.png"); + image = KGlobal::iconLoader()->loadIcon("question", KIcon::NoGroup, KIcon::SizeMedium); } else image = QPixmap((const char **) window_icon).convertToImage(); if (window_icon) XpmFree(window_icon); |