mirror of https://github.com/buggins/dlangui.git
tree.clear() fixed
This commit is contained in:
parent
f152eacf59
commit
db47becae8
|
@ -139,7 +139,13 @@ class TreeItem {
|
|||
}
|
||||
|
||||
void clear() {
|
||||
foreach(c; _children) {
|
||||
c.parent = null;
|
||||
if(c is root.selectedItem)
|
||||
root.selectItem(null);
|
||||
}
|
||||
_children.clear();
|
||||
root.onUpdate(this);
|
||||
}
|
||||
|
||||
@property TreeItem parent() { return _parent; }
|
||||
|
|
Loading…
Reference in New Issue