From b5adb084f277319940280b57635c2a3589e8cd51 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 26 Mar 2016 03:00:10 -0400 Subject: [PATCH] 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. --- chrome/content/zotero/zoteroPane.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index e65e7d812d..75d47e482a 100644 --- 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);