mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 476994 - issues with about:sessionrestore treeview implementation. r=neil
This commit is contained in:
parent
819312ff7d
commit
fc3b583de2
@ -274,8 +274,10 @@ var treeView = {
|
||||
|
||||
hasNextSibling: function(idx, after) {
|
||||
var thisLevel = this.getLevel(idx);
|
||||
for (var t = idx + 1; t < gTreeData.length && this.getLevel(t) > thisLevel; t++);
|
||||
return thisLevel == this.getLevel(t);
|
||||
for (var t = after + 1; t < gTreeData.length; t++)
|
||||
if (this.getLevel(t) <= thisLevel)
|
||||
return this.getLevel(t) == thisLevel;
|
||||
return false;
|
||||
},
|
||||
|
||||
toggleOpenState: function(idx) {
|
||||
@ -298,6 +300,7 @@ var treeView = {
|
||||
this.treeBox.rowCountChanged(idx + 1, toinsert.length);
|
||||
}
|
||||
item.open = !item.open;
|
||||
this.treeBox.invalidateRow(idx);
|
||||
},
|
||||
|
||||
getCellProperties: function(idx, column, prop) {
|
||||
|
Loading…
Reference in New Issue
Block a user