Preferences - Show Cookies - <tree onselect>/"onCookieSelected" is not fired twice

This commit is contained in:
janekptacijarabaci 2018-06-24 12:25:14 +02:00 committed by Roy Tam
commit f3919fb5e6
2 changed files with 6 additions and 2 deletions

View file

@ -808,7 +808,9 @@ var gCookiesWindow = {
this._view._invalidateCache(0);
this._view.selection.clearSelection();
this._view.selection.select(0);
if (this._view.rowCount > 0) {
this._view.selection.select(0);
}
this._tree.treeBoxObject.invalidate();
this._tree.treeBoxObject.ensureRowIsVisible(0);

View file

@ -788,7 +788,9 @@ var gCookiesWindow = {
this._view._invalidateCache(0);
this._view.selection.clearSelection();
this._view.selection.select(0);
if (this._view.rowCount > 0) {
this._view.selection.select(0);
}
this._tree.treeBoxObject.invalidate();
this._tree.treeBoxObject.ensureRowIsVisible(0);