Commit 636af882 authored by Christoph Cullmann's avatar Christoph Cullmann

fix dbus session registration

BUG: 410742
parent 6a53504c
...@@ -110,11 +110,6 @@ bool KateApp::init() ...@@ -110,11 +110,6 @@ bool KateApp::init()
} }
} }
// application dbus interface
if (QDBusConnection::sessionBus().interface()) {
QDBusConnection::sessionBus().registerObject(QStringLiteral("/MainApplication"), this);
}
return true; return true;
} }
......
...@@ -28,8 +28,14 @@ ...@@ -28,8 +28,14 @@
#include <KStartupInfo> #include <KStartupInfo>
#include <KWindowSystem> #include <KWindowSystem>
#include <QApplication>
/**
* add the adapter to the global application instance to have
* it auto-register with KDBusService, see bug 410742
*/
KateAppAdaptor::KateAppAdaptor(KateApp *app) KateAppAdaptor::KateAppAdaptor(KateApp *app)
: QDBusAbstractAdaptor(app) : QDBusAbstractAdaptor(qApp)
, m_app(app) , m_app(app)
{} {}
......
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