From 7797c5d302470877d2e25462ffa53c0ce6e0d86b Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Thu, 14 Mar 2024 21:36:22 +0200 Subject: [PATCH] kcontrol: do not call kClearDebugConfig() and do not send D-Bus message from kdebug KCM Signed-off-by: Ivailo Monev --- kcontrol/kdebug/kdebugconfig.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/kcontrol/kdebug/kdebugconfig.cpp b/kcontrol/kdebug/kdebugconfig.cpp index 8c1fbf47..04da0ebc 100644 --- a/kcontrol/kdebug/kdebugconfig.cpp +++ b/kcontrol/kdebug/kdebugconfig.cpp @@ -27,7 +27,6 @@ #include #include #include -#include #include #include @@ -154,9 +153,6 @@ KCMDebug::~KCMDebug() void KCMDebug::readAreas() { - // Group 0 is not used anymore. kDebug() uses the area named after the appname. - //areas.insert( " 0" /*cf rightJustified below*/, "0 (generic)" ); - const QString confAreasFile = KStandardDirs::locate("config", "kdebug.areas"); QFile file( confAreasFile ); if (!file.open(QIODevice::ReadOnly)) { @@ -178,7 +174,7 @@ void KCMDebug::readAreas() if (space == -1) kError() << "No space:" << data; - bool longOK; + bool longOK = false; unsigned long number = data.left(space).toULong(&longOK); if (!longOK) kError() << "The first part wasn't a number : " << data; @@ -226,13 +222,6 @@ void KCMDebug::save() topGroup.writeEntry("DisableAll", m_disableAll->isChecked()); pConfig->sync(); - kClearDebugConfig(); - - QDBusMessage msg = QDBusMessage::createSignal("/", "org.kde.KDebug", "configChanged"); - if (!QDBusConnection::sessionBus().send(msg)) - { - kError() << "Unable to send D-BUS message"; - } emit changed( false ); }