diff --git a/chrome/content/zotero/fileInterface.js b/chrome/content/zotero/fileInterface.js index 8f8128c384..32f311c648 100644 --- a/chrome/content/zotero/fileInterface.js +++ b/chrome/content/zotero/fileInterface.js @@ -426,10 +426,14 @@ var Zotero_File_Interface = new function() { } else if (!createNewCollection) { try { - if (!ZoteroPane.collectionsView.editable) { - ZoteroPane.collectionsView.selectLibrary(null); + let zp = Zotero.getActiveZoteroPane(); + if (!zp.canEdit()) { + yield zp.collectionsView.selectLibrary(Zotero.Libraries.userLibraryID); } - } catch(e) {} + } + catch (e) { + Zotero.logError(e); + } } var defaultNewCollectionPrefix = Zotero.getString("fileInterface.imported");