Commit 3ac90603 authored by David Faure's avatar David Faure
Browse files

Fix regression in my port to KPluginLoader

commit 0e4d3925 changed the plugin identifier from
pluginInfo.pluginName() to pluginInfo.libraryPath(), by mistake.

This broke the summary view which does
activeSummaries.contains(plugin->identifier()).
parent 3dc523dc
Pipeline #23748 passed with stage
in 7 minutes and 38 seconds
......@@ -370,9 +370,8 @@ void MainWindow::loadPlugins()
continue;
}
const QString pluginName = pluginInfo.libraryPath();
//qDebug() << pluginName;
KontactInterface::Plugin *plugin = pluginFromName(pluginName);
const QString pluginPath = pluginInfo.libraryPath();
KontactInterface::Plugin *plugin = pluginFromName(pluginPath);
if (plugin) { // already loaded
plugin->configUpdated();
continue;
......@@ -392,7 +391,7 @@ void MainWindow::loadPlugins()
}
}
plugin->setIdentifier(pluginName);
plugin->setIdentifier(pluginInfo.pluginName());
plugin->setTitle(pluginInfo.name());
plugin->setIcon(pluginInfo.icon());
......
Markdown is supported
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