diff --git a/src/qml/experimental/monitor.h b/src/qml/experimental/monitor.h --- a/src/qml/experimental/monitor.h +++ b/src/qml/experimental/monitor.h @@ -66,7 +66,7 @@ private Q_SLOTS: void newFile(const QString& filePath); - void balooStarted(const QString& service); + void balooStarted(); void slotIndexerStateChanged(int state); private: diff --git a/src/qml/experimental/monitor.cpp b/src/qml/experimental/monitor.cpp --- a/src/qml/experimental/monitor.cpp +++ b/src/qml/experimental/monitor.cpp @@ -60,7 +60,7 @@ QDBusServiceWatcher* balooWatcher = new QDBusServiceWatcher(m_scheduler->service(), m_bus, - QDBusServiceWatcher::WatchForRegistration, + QDBusServiceWatcher::WatchForOwnerChange, this); connect(balooWatcher, &QDBusServiceWatcher::serviceRegistered, this, &Monitor::balooStarted); connect(balooWatcher, &QDBusServiceWatcher::serviceUnregistered, this, [this]() { @@ -72,7 +72,7 @@ if (m_scheduler->isValid()) { // baloo is already running - balooStarted(m_scheduler->service()); + balooStarted(); } } @@ -105,10 +105,8 @@ } } -void Monitor::balooStarted(const QString& service) +void Monitor::balooStarted() { - Q_ASSERT(service == QLatin1String("org.kde.baloo")); - m_balooRunning = true; m_fileindexer->registerMonitor();