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()
bool ImportMailPluginManager::initializePluginList()
{
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(5, 85, 0)
const QVector<KPluginMetaData> plugins = KPluginLoader::findPlugins(QStringLiteral("importwizard"));
#else
#if KCOREADDONS_VERSION > QT_VERSION_CHECK(5, 85, 0)
const QVector<KPluginMetaData> plugins = KPluginMetaData::findPlugins(QStringLiteral("importwizard"));
#else
const QVector<KPluginMetaData> plugins = KPluginLoader::findPlugins(QStringLiteral("importwizard"));
#endif
QVectorIterator<KPluginMetaData> i(plugins);
......
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