add NULL as parent for MwReparent
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
2a09a71659
commit
201c5f84a5
1 changed files with 4 additions and 2 deletions
|
|
@ -1018,9 +1018,11 @@ void MwReparent(MwWidget handle, MwWidget new_parent) {
|
|||
}
|
||||
|
||||
handle->parent = new_parent;
|
||||
arrput(new_parent->children, handle);
|
||||
if(new_parent != NULL) {
|
||||
arrput(new_parent->children, handle);
|
||||
|
||||
MwDispatch(handle->parent, children_update);
|
||||
MwDispatch(handle->parent, children_update);
|
||||
}
|
||||
|
||||
MwForceRender(handle);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue