Commit 757014fc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Delete group if it's empty

parent 24899341
Pipeline #22431 failed with stage
in 15 minutes and 49 seconds
......@@ -98,6 +98,9 @@ void RefreshSettingsCleanupPage::initCleanupFolderSettings(const QString &config
for (const QString &str : folderList) {
KConfigGroup oldGroup = settingsrc->group(str);
cleanupFolderSettings(oldGroup);
if (oldGroup.keyList().isEmpty()) {
oldGroup.deleteGroup();
}
}
settingsrc->sync();
Q_EMIT cleanDoneInfo(i18n("Clean Folder Settings in setting file `%1`: Done", configName));
......
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