diff --git a/src/globalsearch/searchprovider.cpp b/src/globalsearch/searchprovider.cpp index da6acb51e..3a74021c4 100644 --- a/src/globalsearch/searchprovider.cpp +++ b/src/globalsearch/searchprovider.cpp @@ -89,11 +89,12 @@ void BlockingSearchProvider::SearchAsync(int id, const QString& query) { void BlockingSearchProvider::BlockingSearchFinished() { BoundFutureWatcher* watcher = static_cast*>(sender()); - watcher->deleteLater(); const int id = watcher->data(); emit ResultsAvailable(id, watcher->result()); emit SearchFinished(id); + + watcher->deleteLater(); } QImage SearchProvider::ScaleAndPad(const QImage& image) {