Commit 331ebfdf authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

not necessary to use serviceTypes()

parent c1028eef
......@@ -53,9 +53,7 @@ ImportMailPluginManager *ImportMailPluginManager::self()
bool ImportMailPluginManager::initializePluginList()
{
const QVector<KPluginMetaData> plugins = KPluginLoader::findPlugins(QStringLiteral("importwizard"), [](const KPluginMetaData &md) {
return md.serviceTypes().contains(QLatin1String("ImportWizard/PluginMailImporter"));
});
const QVector<KPluginMetaData> plugins = KPluginLoader::findPlugins(QStringLiteral("importwizard"));
QVectorIterator<KPluginMetaData> i(plugins);
i.toBack();
......
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