commit 9c53fe893cb2d977bec26823bf4b982d67487791
parent 1c19fe8d81f97b288af5ccc3810fa2ff3de1a946
Author: Dan Stillman <dstillman@zotero.org>
Date: Sat, 9 Apr 2016 18:30:45 -0400
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.
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/collectionTreeView.js b/chrome/content/zotero/xpcom/collectionTreeView.js
@@ -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
//