From 57b44287f8c5f090b55ec4827de714fc3290549c Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 17 Jan 2017 07:12:09 -0500 Subject: [PATCH] Don't allow deleting libraries other than feeds with Cmd/Ctrl-Delete --- chrome/content/zotero/zoteroPane.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index fd6f30279..13518d82f 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -1892,6 +1892,11 @@ var ZoteroPane = new function() this.deleteSelectedCollection = function (deleteItems) { var collectionTreeRow = this.getCollectionTreeRow(); + // Don't allow deleting libraries + if (collectionTreeRow.isLibrary(true) && !collectionTreeRow.isFeed()) { + return; + } + // Remove virtual duplicates collection if (collectionTreeRow.isDuplicates()) { this.setVirtual(collectionTreeRow.ref.libraryID, 'duplicates', false);