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:
parent
b7b246e741
commit
b5adb084f2
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue