Commit ae73bd15 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Extended Processes] Pass parent to created plugin

The plugin relies on its parent to be `KSysGuard::Processes`.

Regression from d4d8a5a2

BUG: 451148
parent 1b36ab8c
Pipeline #146082 passed with stage
in 2 minutes
......@@ -555,7 +555,7 @@ void ExtendedProcesses::Private::loadPlugins()
// instantiate all plugins
for (const auto &pluginMetaData : listMetaData) {
qCDebug(LIBKSYSGUARD_PROCESSCORE) << "loading plugin" << pluginMetaData.name();
auto provider = KPluginFactory::instantiatePlugin<ProcessDataProvider>(pluginMetaData);
auto provider = KPluginFactory::instantiatePlugin<ProcessDataProvider>(pluginMetaData, q);
if (!provider.plugin) {
qCCritical(LIBKSYSGUARD_PROCESSCORE) << "failed to instantiate ProcessDataProvider" << pluginMetaData.name();
continue;
......
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