Commit 56050423 authored by Ahmad Samir's avatar Ahmad Samir
Browse files

WIP: Port away from KSettings::Dispatcher

This depends on frameworks/kcmutils!51

KF6 task: https://phabricator.kde.org/T13695
parent 802ad1e4
Pipeline #68031 passed with stage
in 5 minutes and 5 seconds
......@@ -155,7 +155,6 @@ void MainWindow::initObject()
if (mSidePane) {
mSidePane->updatePlugins();
}
KSettings::Dispatcher::registerComponent(QStringLiteral("kontact"), this, "updateConfig");
loadSettings();
......@@ -721,6 +720,11 @@ void MainWindow::slotPreferences()
if (!dlg) {
dlg = new Kontact::KontactConfigureDialog(this);
dlg->setAllowComponentSelection(true);
connect(dlg, QOverload<const QByteArray &>::of(&KSettings::Dialog::configCommitted), this, [this](const QByteArray &componentName) {
if (componentName == QByteArrayLiteral("kontact")) {
MainWindow::updateConfig();
}
});
// do not show settings of components running standalone
KPluginInfo::List filteredPlugins = mPluginInfos;
......
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