Commit 29f8669b authored by Kåre Särs's avatar Kåre Särs
Browse files

S&R: make sure we have queued connections for worker threads

parent ae72e2ea
......@@ -760,15 +760,15 @@ void KatePluginSearchView::startDiskFileSearch(const QStringList &fileList, cons
while (nextChunk < fileList.size()) {
QStringList chunckList = fileList.mid(nextChunk, chunkSize);
SearchDiskFiles *runner = new SearchDiskFiles(chunckList, reg, includeBinaryFiles);
connect(runner, &SearchDiskFiles::matchesFound, this, &KatePluginSearchView::matchesFound);
connect(this, &KatePluginSearchView::cancelSearch, runner, &SearchDiskFiles::cancelSearch);
connect(runner, &SearchDiskFiles::matchesFound, this, &KatePluginSearchView::matchesFound, Qt::QueuedConnection);
connect(this, &KatePluginSearchView::cancelSearch, runner, &SearchDiskFiles::cancelSearch, Qt::QueuedConnection);
connect(runner, &SearchDiskFiles::destroyed, this, [this]() {
if (m_searchDiskFilePool.activeThreadCount() == 0) {
if (!m_diskSearchDoneTimer.isActive()) {
}, Qt::QueuedConnection);
nextChunk += chunkSize;
Supports Markdown
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