searchDisplay: Update the selection for async searches without results

This ensures that the initial selection is always set correctly. We
were missing the empty async search results case.

https://bugzilla.gnome.org/show_bug.cgi?id=673233
This commit is contained in:
Rui Matos 2012-04-05 15:48:30 +02:00
parent dd79c1a79a
commit 168e9eeac1

View File

@ -407,6 +407,7 @@ const SearchResults = new Lang.Class({
meta.resultDisplay.renderResults(metas);
}
}
this._maybeSetInitialSelection();
},
_updateResults: function(searchSystem, results) {
@ -433,7 +434,6 @@ const SearchResults = new Lang.Class({
this._updateProviderResults(provider, providerResults, terms);
}
this._maybeSetInitialSelection();
this._content.show();
return true;