Commit e50eafbf authored by David Edmundson's avatar David Edmundson
Browse files

Port away from kglobalsettings

Summary:
This was there only to support notifying kdeinit4, which we no longer
care about.

For KF5 we should be sending the specific call to klauncher
to reparse KProtocolManager, which in one case we seem to
actually miss.

Reviewers: #plasma, apol

Reviewed By: apol

Subscribers: apol, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D25637
parent 7c11cb46
......@@ -15,7 +15,6 @@
#include "componentchooserbrowser.h"
#include <kopenwithdialog.h>
#include <kglobalsettings.h>
#include <kconfiggroup.h>
#include <KBuildSycocaProgressDialog>
......@@ -25,6 +24,8 @@
#include "../migrationlib/kdelibs4config.h"
#include <QUrl>
#include <QDBusConnection>
#include <QDBusMessage>
CfgBrowser::CfgBrowser(QWidget *parent)
: QWidget(parent), Ui::BrowserConfig_UI(),CfgPlugin()
......@@ -139,7 +140,11 @@ void CfgBrowser::save(KConfig *)
Kdelibs4SharedConfig::syncConfigGroup(QLatin1String("General"), "kdeglobals");
KGlobalSettings::self()->emitChange(KGlobalSettings::SettingsChanged);
QDBusMessage message = QDBusMessage::createMethodCall(QStringLiteral("org.kde.klauncher5"),
QStringLiteral("/KLauncher"),
QStringLiteral("org.kde.KLauncher"),
QStringLiteral("reparseConfiguration"));
QDBusConnection::sessionBus().send(message);
emit changed(false);
}
......
......@@ -28,7 +28,6 @@
#include <kurlrequester.h>
#include <kconfiggroup.h>
#include <KLocalizedString>
#include <KGlobalSettings>
#include <QUrl>
......@@ -86,8 +85,6 @@ void CfgTerminalEmulator::save(KConfig *)
config.sync();
Kdelibs4SharedConfig::syncConfigGroup(QLatin1String("General"), "kdeglobals");
KGlobalSettings::self()->emitChange(KGlobalSettings::SettingsChanged);
QDBusMessage message = QDBusMessage::createMethodCall(QStringLiteral("org.kde.klauncher5"),
QStringLiteral("/KLauncher"),
QStringLiteral("org.kde.KLauncher"),
......
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