Commit 870ecbef authored by Marco Martin's avatar Marco Martin
Browse files

Take the pluginId from the kpackage metadata

e64c1372
caused pluginMetadata() to be from parent applet, losing a way to load
the proper preset

BUG:457657
parent 788ef152
Pipeline #218568 passed with stage
in 10 minutes and 40 seconds
......@@ -42,9 +42,9 @@ void SystemMonitor::init()
{
configChanged();
// NOTE: taking the pluginId this way, we take it from the child applet (cpu monitor, memory, whatever) rather than the parent fallback applet
// (systemmonitor)
const QString pluginId = pluginMetaData().pluginId();
// NOTE: taking the pluginId from the package instead of applet metadata, we take it from the child applet (cpu monitor, memory, whatever) rather than the
// parent fallback applet (systemmonitor)
const QString pluginId = kPackage().metadata().pluginId();
// FIXME HACK: better way to get the engine At least AppletQuickItem should have an engine() getter
KDeclarative::QmlObjectSharedEngine *qmlObject = new KDeclarative::QmlObjectSharedEngine();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment