From bd18339797e1ead7d3fe5f5c29277f0472340e8d Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Wed, 13 Jul 2022 16:23:50 -0400 Subject: [PATCH] Prevent deleting My Publications Previously showed a blank confirmation dialog and logged an error. --- chrome/content/zotero/zoteroPane.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index dd2e9be2c9..0339b3bd72 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -1939,8 +1939,9 @@ var ZoteroPane = new function() this.deleteSelectedCollection = function (deleteItems) { var collectionTreeRow = this.getCollectionTreeRow(); - // Don't allow deleting libraries - if (collectionTreeRow.isLibrary(true) && !collectionTreeRow.isFeed()) { + // Don't allow deleting libraries or My Publications + if (collectionTreeRow.isLibrary(true) && !collectionTreeRow.isFeed() + || collectionTreeRow.isPublications()) { return; }