From b19f4fe01d2b0c0f7ccc8ce93f9e50ed9bc963a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Thu, 28 Mar 2013 01:38:43 +0100 Subject: [PATCH] also consider KServices in plasmapkg wallpaper listing --- src/plasmapkg/plasmapkg.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/plasmapkg/plasmapkg.cpp b/src/plasmapkg/plasmapkg.cpp index 01f1e34c7..603d91bc0 100644 --- a/src/plasmapkg/plasmapkg.cpp +++ b/src/plasmapkg/plasmapkg.cpp @@ -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; } } }