Changeset View
Changeset View
Standalone View
Standalone View
src/runnermanager.cpp
Show First 20 Lines • Show All 347 Lines • ▼ Show 20 Line(s) | 333 | { | |||
---|---|---|---|---|---|
348 | oldSearchJobs.remove(runJob); | 348 | oldSearchJobs.remove(runJob); | ||
349 | 349 | | |||
350 | if (searchJobs.isEmpty() && context.matches().isEmpty()) { | 350 | if (searchJobs.isEmpty() && context.matches().isEmpty()) { | ||
351 | // we finished our run, and there are no valid matches, and so no | 351 | // we finished our run, and there are no valid matches, and so no | ||
352 | // signal will have been sent out. so we need to emit the signal | 352 | // signal will have been sent out. so we need to emit the signal | ||
353 | // ourselves here | 353 | // ourselves here | ||
354 | emit q->matchesChanged(context.matches()); | 354 | emit q->matchesChanged(context.matches()); | ||
355 | } | 355 | } | ||
356 | | ||||
357 | teardownRequested = true; | | |||
358 | checkTearDown(); | | |||
359 | } | 356 | } | ||
360 | 357 | | |||
361 | void checkTearDown() | 358 | void checkTearDown() | ||
362 | { | 359 | { | ||
363 | //qCDebug(KRUNNER) << prepped << teardownRequested << searchJobs.count() << oldSearchJobs.count(); | 360 | //qCDebug(KRUNNER) << prepped << teardownRequested << searchJobs.count() << oldSearchJobs.count(); | ||
364 | 361 | | |||
365 | if (!prepped || !teardownRequested) { | 362 | if (!prepped || !teardownRequested) { | ||
366 | return; | 363 | return; | ||
▲ Show 20 Lines • Show All 487 Lines • Show Last 20 Lines |