commit b5adb084f277319940280b57635c2a3589e8cd51
parent b7b246e741a00ebe9695ac747d53d25e65cb87a1
Author: Dan Stillman <dstillman@zotero.org>
Date: Sat, 26 Mar 2016 03:00:10 -0400
Don't reload last folder on items pane crash, in case it's the problem
Otherwise you have to edit the prefs to continue using Zotero if, say, a saved
search causes a crash.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js
@@ -1175,6 +1175,8 @@ var ZoteroPane = new function()
this.itemsView = new Zotero.ItemTreeView(collectionTreeRow);
this.itemsView.onError = function () {
+ // Don't reload last folder, in case that's the problem
+ Zotero.Prefs.clear('lastViewedFolder');
ZoteroPane_Local.displayErrorMessage();
};
this.itemsView.addEventListener('load', this.setTagScope);