From ab7fc1614dec8bce7b02357d822ab3ec82c2f06f Mon Sep 17 00:00:00 2001 From: Aurimas Vinckevicius Date: Tue, 2 Dec 2014 08:26:13 -0600 Subject: [PATCH] Fix bug in collectionTreeView that caused tree row loss ...when collapsing/expanding group libraries --- chrome/content/zotero/xpcom/collectionTreeView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/collectionTreeView.js b/chrome/content/zotero/xpcom/collectionTreeView.js index e6c832139..f6f7afcd1 100644 --- a/chrome/content/zotero/xpcom/collectionTreeView.js +++ b/chrome/content/zotero/xpcom/collectionTreeView.js @@ -184,9 +184,9 @@ Zotero.CollectionTreeView.prototype.refresh = Zotero.Promise.coroutine(function* rows, new Zotero.CollectionTreeRow('group', groups[i]), 1, - beforeRow ? beforeRow + i + newRows : null + beforeRow ? beforeRow + newRows : null ); - newRows += yield self._expandRow(rows, row); + newRows += 1 + ( yield self._expandRow(rows, row) ); } return newRows; })