monitor the system bus as well

wilder-5.14
Marco Martin 12 years ago
parent 178112645e
commit 7fa3dae707
  1. 4
      applets/systemtray/plugin/protocols/plasmoid/plasmoidprotocol.cpp

@ -240,6 +240,10 @@ void PlasmoidProtocol::initDBusActivatables()
connect(callWatcher, &QDBusPendingCallWatcher::finished,
this, &PlasmoidProtocol::serviceNameFetchFinished);
QDBusPendingCall systemAsync = QDBusConnection::systemBus().interface()->asyncCall("ListNames");
QDBusPendingCallWatcher *systemCallWatcher = new QDBusPendingCallWatcher(systemAsync, this);
connect(systemCallWatcher, &QDBusPendingCallWatcher::finished,
this, &PlasmoidProtocol::serviceNameFetchFinished);
}
void PlasmoidProtocol::serviceNameFetchFinished(QDBusPendingCallWatcher* watcher)

Loading…
Cancel
Save