From 168e9eeac123d608316cb33a2acd7cdebf5f30a7 Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Thu, 5 Apr 2012 15:48:30 +0200 Subject: [PATCH] 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 --- js/ui/searchDisplay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/searchDisplay.js b/js/ui/searchDisplay.js index aeb6cf794..3c16e5656 100644 --- a/js/ui/searchDisplay.js +++ b/js/ui/searchDisplay.js @@ -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;