Changeset View
Changeset View
Standalone View
Standalone View
plugins/debuggercommon/midebuggerplugin.cpp
Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Line(s) | 169 | if (oldOwner.isEmpty() && service.startsWith(QLatin1String("org.kde.drkonqi"))) { | |||
---|---|---|---|---|---|
174 | const QString name = i18n("KDevelop (%1) - %2", m_displayName, core()->activeSession()->name()); | 174 | const QString name = i18n("KDevelop (%1) - %2", m_displayName, core()->activeSession()->name()); | ||
175 | auto drkonqiProxy = new DBusProxy(service, name, this); | 175 | auto drkonqiProxy = new DBusProxy(service, name, this); | ||
176 | m_drkonqis.insert(service, drkonqiProxy); | 176 | m_drkonqis.insert(service, drkonqiProxy); | ||
177 | connect(drkonqiProxy->interface(), SIGNAL(acceptDebuggingApplication(QString)), | 177 | connect(drkonqiProxy->interface(), SIGNAL(acceptDebuggingApplication(QString)), | ||
178 | drkonqiProxy, SLOT(debuggerAccepted(QString))); | 178 | drkonqiProxy, SLOT(debuggerAccepted(QString))); | ||
179 | connect(drkonqiProxy, &DBusProxy::debugProcess, | 179 | connect(drkonqiProxy, &DBusProxy::debugProcess, | ||
180 | this, &MIDebuggerPlugin::slotDebugExternalProcess); | 180 | this, &MIDebuggerPlugin::slotDebugExternalProcess); | ||
181 | 181 | | |||
182 | drkonqiProxy->interface()->call(QStringLiteral("registerDebuggingApplication"), name); | 182 | drkonqiProxy->interface()->call(QStringLiteral("registerDebuggingApplication"), name, QCoreApplication::applicationPid()); | ||
183 | } else if (newOwner.isEmpty() && service.startsWith(QLatin1String("org.kde.drkonqi"))) { | 183 | } else if (newOwner.isEmpty() && service.startsWith(QLatin1String("org.kde.drkonqi"))) { | ||
184 | // Deregistration | 184 | // Deregistration | ||
185 | const auto proxyIt = m_drkonqis.find(service); | 185 | const auto proxyIt = m_drkonqis.find(service); | ||
186 | if (proxyIt != m_drkonqis.end()) { | 186 | if (proxyIt != m_drkonqis.end()) { | ||
187 | auto proxy = *proxyIt; | 187 | auto proxy = *proxyIt; | ||
188 | m_drkonqis.erase(proxyIt); | 188 | m_drkonqis.erase(proxyIt); | ||
189 | proxy->Invalidate(); | 189 | proxy->Invalidate(); | ||
190 | delete proxy; | 190 | delete proxy; | ||
▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines |