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);