Properly update parent isOpen flag when removing child item at end of list
This commit is contained in:
parent
afaaf20c90
commit
d78089d4b9
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue