diff --git a/applets/systemtray/plugin/protocols/dbussystemtray/dbussystemtraytask.cpp b/applets/systemtray/plugin/protocols/dbussystemtray/dbussystemtraytask.cpp index 14458e953..60f399702 100644 --- a/applets/systemtray/plugin/protocols/dbussystemtray/dbussystemtraytask.cpp +++ b/applets/systemtray/plugin/protocols/dbussystemtray/dbussystemtraytask.cpp @@ -370,8 +370,8 @@ void DBusSystemTrayTask::syncIcons(const Plasma::DataEngine::Data &properties) // adding all application dirs to KIconLoader::global(), to // avoid potential icon name clashes between application // icons - m_customIconLoader = new KIconLoader(appName, QStringList(), this); - m_customIconLoader->addAppDir(appName, path); + m_customIconLoader = new KIconLoader(appName, QStringList() << path, this); + m_customIconLoader->addAppDir(appName); is_icon_changed = true; } else { qWarning() << "Wrong IconThemePath" << path << ": too short or does not end with 'icons'"; diff --git a/dataengines/statusnotifieritem/statusnotifieritemsource.cpp b/dataengines/statusnotifieritem/statusnotifieritemsource.cpp index 04cbc1a89..3f5a4104f 100644 --- a/dataengines/statusnotifieritem/statusnotifieritemsource.cpp +++ b/dataengines/statusnotifieritem/statusnotifieritemsource.cpp @@ -217,9 +217,9 @@ void StatusNotifierItemSource::refreshCallback(QDBusPendingCallWatcher *call) QString appName = tokens.takeLast(); if (!m_customIconLoader) { - m_customIconLoader = new KIconLoader(appName, QStringList(), this); + m_customIconLoader = new KIconLoader(appName, QStringList() << path, this); } - m_customIconLoader->addAppDir(appName, path); + m_customIconLoader->addAppDir(appName); } else { qWarning() << "Wrong IconThemePath" << path << ": too short or does not end with 'icons'"; }