on xenial help sign in
Don't unnecessarily check no-results-hint
commit71e7a2779eeaa1ffd9c1b23d3360375612305570 authorMichal Hruby <michal.mhr@gmail.com> dateFri 20 Sep 2013, 12:54 (13 years ago) parente29dfcf
1 file changed+3
plugins/Unity/scope.cpp+3
plugins/Unity/scope.cpp+3
@@ -329,6 +329,9 @@ void Scope::onSearchFinished(std::string const& /* query */, unity::glib::HintsM
329329 if (!err || !g_error_matches(error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
330330 m_searchInProgress = false;
331331 Q_EMIT searchInProgressChanged();
332+ } else {
333+ // no need to check the results hint, we're still searching
334+ return;
332335 }
333336
334337 if (!m_unityScope->results()->count()) {