search: Don't run a full search for equal terms

Due to the timeout on the search entry, it's possible for
a very quick edit to the entry to launch a subsearch on the
same search string.

https://bugzilla.gnome.org/show_bug.cgi?id=693937
This commit is contained in:
Jasper St. Pierre 2013-02-15 23:15:13 -05:00
parent b292bba092
commit 87495575bc

View File

@ -66,6 +66,8 @@ const SearchSystem = new Lang.Class({
let searchString = terms.join(' ');
let previousSearchString = this._previousTerms.join(' ');
if (searchString == previousSearchString)
return;
let isSubSearch = false;
if (this._previousTerms.length > 0)