[gnome-shell] search: Make sure to clear the timeout



commit 99c29366ee483e2539a34784d31d343fef8f3850
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Sep 11 17:40:00 2014 -0600

    search: Make sure to clear the timeout

 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 b8ee1b7..7998a9b 100644
--- a/js/ui/search.js
+++ b/js/ui/search.js
@@ -481,8 +481,10 @@ const SearchResults = new Lang.Class({
         this._cancellable.reset();
 
         if (!terms) {
-            if (this._searchTimeoutId > 0)
+            if (this._searchTimeoutId > 0) {
+                this._searchTimeoutId = 0;
                 GLib.source_remove(this._searchTimeoutId);
+            }
             return;
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]