commit 57b44287f8c5f090b55ec4827de714fc3290549c
parent b62139ed0a66d29b5f648ecad595bb2154a7bd85
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 17 Jan 2017 07:12:09 -0500
Don't allow deleting libraries other than feeds with Cmd/Ctrl-Delete
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git 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);