summaryrefslogtreecommitdiff
path: root/toolkit/components/passwordmgr
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-06-24 12:18:48 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-06-24 12:18:48 +0200
commit1f50e1c476a287692847d7d8f94a903517b727a7 (patch)
treebecdf5c59ef7fbc7173a7223e9a2e2c5a9018e6f /toolkit/components/passwordmgr
parentd819da37b01e87e5e067ae37092cd2044e6a40e3 (diff)
downloaduxp-1f50e1c476a287692847d7d8f94a903517b727a7.tar.gz
Preferences - Saved Passwords - "Remove" button should not be active if there are no items
Diffstat (limited to 'toolkit/components/passwordmgr')
-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 da63d7de83..bd5cebfc46 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 = {};