on xenial help sign in
Don't unnecessarily check no-results-hint
71e7a27Michal Hruby
plugins/Unity/scope.cpp+3
@@ -329,6 +329,9 @@ void Scope::onSearchFinished(std::string const& /* query */, unity::glib::HintsM
329 if (!err || !g_error_matches(error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
329 if (!err || !g_error_matches(error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
330 m_searchInProgress = false;
330 m_searchInProgress = false;
331 Q_EMIT searchInProgressChanged();
331 Q_EMIT searchInProgressChanged();
332+ } else {
333+ // no need to check the results hint, we're still searching
334+ return;
332 }
335 }
333
336
334 if (!m_unityScope->results()->count()) {
337 if (!m_unityScope->results()->count()) {