From f527efa59d34cc53464035b3725fc75c4d08ca6f Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Sun, 10 Nov 2019 22:19:01 -0500 Subject: Bug 1320475 - Fix broken controllers for cmd_printcard and cmd_printcardpreview. Tag mcp-graveyard/UXP%1273 --- mailnews/addrbook/content/abResultsPane.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mailnews/addrbook/content/abResultsPane.js b/mailnews/addrbook/content/abResultsPane.js index 58a1771cb..9a31f701e 100644 --- a/mailnews/addrbook/content/abResultsPane.js +++ b/mailnews/addrbook/content/abResultsPane.js @@ -366,6 +366,8 @@ var ResultsPaneController = case "cmd_selectAll": case "cmd_delete": case "button_delete": + case "cmd_printcardpreview": + case "cmd_printcard": case "cmd_properties": case "cmd_newlist": case "cmd_newCard": @@ -414,6 +416,9 @@ var ResultsPaneController = } } return (enabled && (numSelected > 0)); + case "cmd_printcardpreview": + case "cmd_printcard": + return (GetNumSelectedCards() > 0); case "cmd_properties": // Temporary fix for SeaMonkey (see bug 1318852). // goSetLabelAccesskeyTooltiptext() is only defined in mail/. -- cgit v1.2.3