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
This commit is contained in:
parent
557f9ceb97
commit
059c330d95
@ -455,8 +455,10 @@ Dash.prototype = {
|
|||||||
if (!this._searchActive) {
|
if (!this._searchActive) {
|
||||||
if (this._searchPane != null)
|
if (this._searchPane != null)
|
||||||
this._searchPane.close();
|
this._searchPane.close();
|
||||||
if (this._searchTimeoutId > 0)
|
if (this._searchTimeoutId > 0) {
|
||||||
Mainloop.source_remove(this._searchTimeoutId);
|
Mainloop.source_remove(this._searchTimeoutId);
|
||||||
|
this._searchTimeoutId = 0;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this._searchTimeoutId > 0)
|
if (this._searchTimeoutId > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user