Properly update parent isOpen flag when removing child item at end of list

This commit is contained in:
Dan Stillman 2016-04-07 21:08:20 -04:00
parent afaaf20c90
commit d78089d4b9

View file

@ -175,8 +175,7 @@ Zotero.LibraryTreeView.prototype = {
// Update isOpen if parent and no siblings
if (row != 0
&& this.getLevel(row - 1) < level
&& this._rows[row]
&& this.getLevel(row) != level) {
&& (!this._rows[row] || this.getLevel(row) != level)) {
this._rows[row - 1].isOpen = false;
this._treebox.invalidateRow(row - 1);
}