mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kcontrol: do not call kClearDebugConfig() and do not send D-Bus message from kdebug KCM
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
3a8a39a896
commit
7797c5d302
1 changed files with 1 additions and 12 deletions
|
@ -27,7 +27,6 @@
|
|||
#include <QGroupBox>
|
||||
#include <QCheckBox>
|
||||
#include <QPushButton>
|
||||
#include <QtDBus/QtDBus>
|
||||
#include <QFile>
|
||||
|
||||
#include <kdebug.h>
|
||||
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue