summaryrefslogtreecommitdiffstats
path: root/application/palemoon
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-06-24 12:25:14 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-06-24 12:25:14 +0200
commit491fc99b92df22595ab6667bb9de0de989f58ab1 (patch)
tree87bb838e19a0884d79f4b0a6ddff70fabf893119 /application/palemoon
parent640f9ed3a5165b87644aa40342c62bc17f3ec4d7 (diff)
downloadUXP-491fc99b92df22595ab6667bb9de0de989f58ab1.tar
UXP-491fc99b92df22595ab6667bb9de0de989f58ab1.tar.gz
UXP-491fc99b92df22595ab6667bb9de0de989f58ab1.tar.lz
UXP-491fc99b92df22595ab6667bb9de0de989f58ab1.tar.xz
UXP-491fc99b92df22595ab6667bb9de0de989f58ab1.zip
Preferences - Show Cookies - <tree onselect>/"onCookieSelected" is not fired twice
Diffstat (limited to 'application/palemoon')
-rw-r--r--application/palemoon/components/preferences/cookies.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/application/palemoon/components/preferences/cookies.js b/application/palemoon/components/preferences/cookies.js
index 74ec3d1d2..4fa47ee4e 100644
--- a/application/palemoon/components/preferences/cookies.js
+++ b/application/palemoon/components/preferences/cookies.js
@@ -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);