You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.1 KiB
30 lines
1.1 KiB
From 60fe4f080c514fb3d5c6a8f61e5f4333700a8c82 Mon Sep 17 00:00:00 2001
|
|
From: Marco Martin <notmart@gmail.com>
|
|
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<KPluginMetaData> plugins = KPackage::PackageLoader::self()->listPackages(type);
|
|
for (auto plugin : plugins) {
|
|
const QString _plugin = plugin.pluginId();
|
|
--
|
|
2.4.3
|
|
|