From 1f50e1c476a287692847d7d8f94a903517b727a7 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Sun, 24 Jun 2018 12:18:48 +0200 Subject: Preferences - Saved Passwords - "Remove" button should not be active if there are no items --- toolkit/components/passwordmgr/content/passwordManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toolkit/components/passwordmgr') 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 = {}; -- cgit v1.2.3