diff --git a/src/plugins/coreplugin/locator/locator.cpp b/src/plugins/coreplugin/locator/locator.cpp index 2d383d2da99..670f77e2013 100644 --- a/src/plugins/coreplugin/locator/locator.cpp +++ b/src/plugins/coreplugin/locator/locator.cpp @@ -391,6 +391,7 @@ void Locator::refresh(QList filters) if (m_refreshTask.isRunning()) { m_refreshTask.cancel(); + m_refreshTask.waitForFinished(); // this is not ideal because some of the previous filters might have finished, but we // currently cannot find out which part of a map-reduce has finished filters = Utils::filteredUnique(m_refreshingFilters + filters);