search: Only queue an immediate search if we don't have one queued

This commit is contained in:
Jasper St. Pierre 2014-09-11 18:01:08 -06:00
parent 9208473e59
commit c49f2e1384

View File

@ -611,7 +611,9 @@ const SearchResults = new Lang.Class({
},
activateDefault: function() {
this._doSearch();
// If we have a search queued up, force the search now.
if (this._searchTimeoutId > 0)
this._doSearch();
if (this._defaultResult)
this._defaultResult.activate();