Commit a7d25ad2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix logic

parent 250f808f
Pipeline #75621 canceled with stage
...@@ -40,10 +40,10 @@ ImportMailPluginManager *ImportMailPluginManager::self() ...@@ -40,10 +40,10 @@ ImportMailPluginManager *ImportMailPluginManager::self()
bool ImportMailPluginManager::initializePluginList() bool ImportMailPluginManager::initializePluginList()
{ {
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(5, 85, 0) #if KCOREADDONS_VERSION > QT_VERSION_CHECK(5, 85, 0)
const QVector<KPluginMetaData> plugins = KPluginLoader::findPlugins(QStringLiteral("importwizard"));
#else
const QVector<KPluginMetaData> plugins = KPluginMetaData::findPlugins(QStringLiteral("importwizard")); const QVector<KPluginMetaData> plugins = KPluginMetaData::findPlugins(QStringLiteral("importwizard"));
#else
const QVector<KPluginMetaData> plugins = KPluginLoader::findPlugins(QStringLiteral("importwizard"));
#endif #endif
QVectorIterator<KPluginMetaData> i(plugins); QVectorIterator<KPluginMetaData> i(plugins);
......
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