From 60fe4f080c514fb3d5c6a8f61e5f4333700a8c82 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 28 Aug 2015 16:48:05 +0200 Subject: [PATCH] fix package listing load a package of the proper type before listing this makes the proper package structures to be loaded --- src/plasmapkg/plasmapkg.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plasmapkg/plasmapkg.cpp b/src/plasmapkg/plasmapkg.cpp index cea331c..4626323 100644 --- a/src/plasmapkg/plasmapkg.cpp +++ b/src/plasmapkg/plasmapkg.cpp @@ -436,6 +436,10 @@ QStringList PlasmaPkgPrivate::packages(const QStringList &types) } } + //Loading a package of the given type, caches the proper + //packagestructures in the packageloader, making the listing + //of packages succeed + Plasma::PluginLoader::self()->loadPackage(type); const QList plugins = KPackage::PackageLoader::self()->listPackages(type); for (auto plugin : plugins) { const QString _plugin = plugin.pluginId(); -- 2.4.3