Skip collectionTreeView::notify() actions if no selection

I think this only happens if the Zotero pane hasn't yet been opened, which also
means an initial refresh() hasn't been done, which means that updates aren't
necessary.
This commit is contained in:
Dan Stillman 2016-04-09 18:30:45 -04:00
parent 1c19fe8d81
commit 9c53fe893c

View File

@ -332,6 +332,11 @@ Zotero.CollectionTreeView.prototype.notify = Zotero.Promise.coroutine(function*
return;
}
if (!this.selection) {
Zotero.debug("Selection didn't exist in collectionTreeView.notify()");
return;
}
//
// Actions that don't change the selection
//