[gnome-shell] search: Only queue an immediate search if we don't have one queued
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] search: Only queue an immediate search if we don't have one queued
- Date: Fri, 12 Sep 2014 00:02:09 +0000 (UTC)
commit c49f2e13849de65a16d14af065e50c04457a7ee8
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Sep 11 18:01:08 2014 -0600
search: Only queue an immediate search if we don't have one queued
js/ui/search.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/search.js b/js/ui/search.js
index f4898df..176041f 100644
--- a/js/ui/search.js
+++ b/js/ui/search.js
@@ -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();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]