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,8 +367,7 @@ 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();
@ -377,7 +376,6 @@ QStringList PlasmaPkgPrivate::packages(const QStringList& types)
}
}
}
}
return result;
}