Commit 20337654 authored by Matthieu Gallien's avatar Matthieu Gallien

fix indexers state management in MusicListenersManager

parent 12a5d295
......@@ -365,7 +365,7 @@ void MusicListenersManager::configChanged()
{
qCDebug(orgKdeElisaIndexersManager()) << "trigger start of baloo file indexer";
QMetaObject::invokeMethod(d->mFileListener.fileListing(), "stop", Qt::BlockingQueuedConnection);
d->mFileSystemIndexerActive = true;
d->mFileSystemIndexerActive = false;
startBalooIndexing();
} else if (!d->mFileSystemIndexerActive && d->mBalooIndexerActive && !d->mBalooListener.canHandleRootPaths())
{
......@@ -446,6 +446,10 @@ void MusicListenersManager::balooAvailabilityChanged()
{
#if defined KF5Baloo_FOUND && KF5Baloo_FOUND
if (!d->mBalooDetector.balooAvailability() || !d->mBalooListener.canHandleRootPaths()) {
if (d->mBalooDetector.balooAvailability()) {
qCInfo(orgKdeElisaIndexersManager) << "Baloo indexer is available";
d->mBalooIndexerAvailable = true;
}
#else
if (true) {
#endif
......
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