Commit d78da3c3 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[kcms/recentfiles] Fix KConfigXT integration

This fixes managing the changed state and resetting to defaults

BUG: 457671
parent 05c26ccf
Pipeline #218377 passed with stage
in 7 minutes and 9 seconds
......@@ -93,6 +93,9 @@ RecentFilesKcm::RecentFilesKcm(QWidget *parent, QVariantList args)
d->blacklistedApplicationsModel->setEnabled(false);
d->messageWidget->setVisible(false);
addConfig(d->pluginConfig, this);
addConfig(d->mainConfig, this);
}
RecentFilesKcm::~RecentFilesKcm()
......@@ -102,11 +105,15 @@ RecentFilesKcm::~RecentFilesKcm()
void RecentFilesKcm::defaults()
{
d->blacklistedApplicationsModel->defaults();
KCModule::defaults();
}
void RecentFilesKcm::load()
{
d->blacklistedApplicationsModel->load();
KCModule::load();
}
void RecentFilesKcm::save()
......@@ -120,6 +127,8 @@ void RecentFilesKcm::save()
// clang-format on
d->mainConfig->setResourceScoringEnabled(whatToRemember != NoApplications);
d->mainConfig->save();
KCModule::save();
}
void RecentFilesKcm::forget(int count, const QString &what)
......
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