[utilities/kdebugsettings] src/widgets: Use LoggingManager::self().saveRules

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit dbcc610f75cdfdb60c5a1c2999df1bfd273644a6 by Laurent Montel.
Committed on 18/07/2026 at 16:05.
Pushed by mlaurent into branch 'master'.

Use LoggingManager::self().saveRules

M  +1    -6    src/widgets/kdebugsettingsdialog.cpp

https://invent.kde.org/utilities/kdebugsettings/-/commit/dbcc610f75cdfdb60c5a1c2999df1bfd273644a6

diff --git a/src/widgets/kdebugsettingsdialog.cpp b/src/widgets/kdebugsettingsdialog.cpp
index 9f439a4f..56994bcc 100644
--- a/src/widgets/kdebugsettingsdialog.cpp
+++ b/src/widgets/kdebugsettingsdialog.cpp
@@ -11,7 +11,6 @@
 #include "customdebugsettingspage.h"
 #include "environmentsettingsrulespage.h"
 #include "groupmanagementdialog.h"
-#include "jobs/saverulesjob.h"
 #include "kdeapplicationdebugsettingpage.h"
 #include "kdebugsettings_debug.h"
 #include "kdebugsettingsutil.h"
@@ -150,11 +149,7 @@ void KDebugSettingsDialog::updateLoggingCategories()
 
 bool KDebugSettingsDialog::saveRules(const QString &path, bool forceSavingAllRules)
 {
-    SaveRulesJob job;
-    job.setFileName(path);
-    job.setListCustom(mCustomSettingsPage->rules());
-    job.setListKde(mKdeApplicationSettingsPage->rules(forceSavingAllRules));
-    if (!job.start()) {
+    if (!LoggingManager::self().saveRules(path, forceSavingAllRules)) {
         KMessageBox::error(this, i18n("\'%1\' cannot be opened. Please verify it.", path));
         return false;
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.