From 059c330d95f44edb33fd0b7cad39261b4c1abbe8 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Thu, 13 Aug 2009 13:11:21 -0400 Subject: [PATCH] Clear _searchTimeoutId when removing search When we remove the search because the search empty is entry, we need to reset _searchTimeoutId to 0. http://bugzilla.gnome.org/show_bug.cgi?id=591719 --- js/ui/dash.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/ui/dash.js b/js/ui/dash.js index edd463e61..4028c8de6 100644 --- a/js/ui/dash.js +++ b/js/ui/dash.js @@ -455,8 +455,10 @@ Dash.prototype = { if (!this._searchActive) { if (this._searchPane != null) this._searchPane.close(); - if (this._searchTimeoutId > 0) + if (this._searchTimeoutId > 0) { Mainloop.source_remove(this._searchTimeoutId); + this._searchTimeoutId = 0; + } return; } if (this._searchTimeoutId > 0)