Commit 243461e9 authored by Christoph Roick's avatar Christoph Roick
Browse files

Modify DBus service name to allow using QDBusServiceWatcher

Fix the DBus connection which allows passing a debuggee to one of the
KDevelop debuggers for future versions (>=5.7) of KDevelop. Instead of the
deprecated serviceOwnerChanged signal, a QDBusServiceWatcher is used,
which requires a different naming scheme. See KDevelop commit 69ef7ea8.

This change has no impact on the connection with current versions of KDevelop.
parent eb87f953
...@@ -95,7 +95,7 @@ DBusInterfaceAdaptor::DBusInterfaceAdaptor(DebuggerManager *parent) ...@@ -95,7 +95,7 @@ DBusInterfaceAdaptor::DBusInterfaceAdaptor(DebuggerManager *parent)
{ {
Q_ASSERT(parent); Q_ASSERT(parent);
if (QDBusConnection::sessionBus().registerService(QStringLiteral("org.kde.drkonqi-%1").arg(pid()))) { if (QDBusConnection::sessionBus().registerService(QStringLiteral("org.kde.drkonqi.PID%1").arg(pid()))) {
QDBusConnection::sessionBus().registerObject(QStringLiteral("/debugger"), parent); QDBusConnection::sessionBus().registerObject(QStringLiteral("/debugger"), parent);
} }
} }
......
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