From 36db3c98b3c731b894f4e646b877db1964a63ff7 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 12 Mar 2016 05:03:14 -0500 Subject: [PATCH] Fix selecting last selected collection --- chrome/content/zotero/xpcom/collectionTreeView.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/xpcom/collectionTreeView.js b/chrome/content/zotero/xpcom/collectionTreeView.js index 015d9763e0..b19407eeac 100644 --- a/chrome/content/zotero/xpcom/collectionTreeView.js +++ b/chrome/content/zotero/xpcom/collectionTreeView.js @@ -919,6 +919,10 @@ Zotero.CollectionTreeView.prototype.selectByID = Zotero.Promise.coroutine(functi break; } + if (found) { + return true; + } + var row = this._rowMap[type + id]; if (!row) { return false;