summaryrefslogtreecommitdiffstats
path: root/toolkit
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-06-24 14:12:10 +0200
committerGitHub <noreply@github.com>2018-06-24 14:12:10 +0200
commitbc0df4c3a545aa2373dd4fc90707d21c2bf852c1 (patch)
tree83d88c74f4494d1ff70e34c892abe9c52e4e193c /toolkit
parent364a399fc1157f73b8a29039a9e7f8d8b7028df5 (diff)
parent491fc99b92df22595ab6667bb9de0de989f58ab1 (diff)
downloadUXP-bc0df4c3a545aa2373dd4fc90707d21c2bf852c1.tar
UXP-bc0df4c3a545aa2373dd4fc90707d21c2bf852c1.tar.gz
UXP-bc0df4c3a545aa2373dd4fc90707d21c2bf852c1.tar.lz
UXP-bc0df4c3a545aa2373dd4fc90707d21c2bf852c1.tar.xz
UXP-bc0df4c3a545aa2373dd4fc90707d21c2bf852c1.zip
Merge pull request #543 from janekptacijarabaci/cookies_logins_1
Preferences - Cookies / Saved Passwords - "Remove..." button should not be active if there are no items; "onselect" is not fired twice
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/components/passwordmgr/content/passwordManager.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/components/passwordmgr/content/passwordManager.js b/toolkit/components/passwordmgr/content/passwordManager.js
index da63d7de8..bd5cebfc4 100644
--- a/toolkit/components/passwordmgr/content/passwordManager.js
+++ b/toolkit/components/passwordmgr/content/passwordManager.js
@@ -326,7 +326,7 @@ function LoadSignons() {
function GetTreeSelections() {
let selections = [];
let select = signonsTree.view.selection;
- if (select) {
+ if (select && signonsTree.view.rowCount > 0) {
let count = select.getRangeCount();
let min = {};
let max = {};