Verified Commit e9dd71a0 authored by Alexander Lohnau's avatar Alexander Lohnau
Browse files

Load kcmldap KCM using KPluginMetaData

The metadata has to point to a valid Qt plugin, the overload taking a string is deprecated
parent 3b4f676d
Pipeline #71712 passed with stage
in 10 minutes and 9 seconds
......@@ -36,6 +36,7 @@
#include <KConfig>
#include <KConfigGroup>
#include <KMessageBox>
#include <KPluginMetaData>
#include <QComboBox>
#include <QDialogButtonBox>
#include <QLineEdit>
......@@ -861,7 +862,7 @@ void LdapSearchDialog::slotUser2()
QPointer<KCMultiDialog> dialog = new KCMultiDialog(this);
dialog->setWindowTitle(i18nc("@title:window", "Configure the Address Book LDAP Settings"));
dialog->addModule(QStringLiteral("kcmldap.desktop"));
dialog->addModule(KPluginMetaData(QStringLiteral("pim/kcms/kaddressbook/kcm_ldap")));
if (dialog->exec()) { // krazy:exclude=crashy
d->restoreSettings();
......
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