Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 533670cd authored by Laurent Montel's avatar Laurent Montel 😁

Fix check

parent cc714285
......@@ -33,11 +33,11 @@ SelectImapWidgetTest::SelectImapWidgetTest(QWidget *parent)
KSieveUi::AbstractMoveImapFolderWidget *lineEdit = nullptr;
KPluginLoader loader(QStringLiteral("libksieve/imapfoldercompletionplugin"));
KPluginFactory *factory = loader.factory();
if (!factory) {
if (factory) {
lineEdit = factory->create<KSieveUi::AbstractMoveImapFolderWidget>();
} else {
lineEdit = new DefaultMoveImapFolderWidget(this);
qDebug() << " error during load : " << loader.errorString();
} else {
lineEdit = factory->create<KSieveUi::AbstractMoveImapFolderWidget>();
}
mainLayout->addWidget(lineEdit);
}
......
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