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.
This commit is contained in:
Dan Stillman 2016-03-26 03:00:10 -04:00
parent b7b246e741
commit b5adb084f2

View file

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