also consider KServices in plasmapkg wallpaper listing

This commit is contained in:
Sebastian Kügler 2013-03-28 01:38:43 +01:00
parent 1dfab488e0
commit b19f4fe01d

View File

@ -367,14 +367,12 @@ QStringList PlasmaPkgPrivate::packages(const QStringList& types)
}
}
}
} else {
const KService::List services = KServiceTypeTrader::self()->query(type);
foreach (const KService::Ptr &service, services) {
const QString _plugin = service->property("X-KDE-PluginInfo-Name", QVariant::String).toString();
if (!result.contains(_plugin)) {
result << _plugin;
}
}
const KService::List services = KServiceTypeTrader::self()->query(type);
foreach (const KService::Ptr &service, services) {
const QString _plugin = service->property("X-KDE-PluginInfo-Name", QVariant::String).toString();
if (!result.contains(_plugin)) {
result << _plugin;
}
}
}