tgrid: preserve visible status when swapping widgets
This commit is contained in:
parent
f3ba474f50
commit
b4aa768fc8
1 changed files with 1 additions and 0 deletions
|
@ -129,6 +129,7 @@ twidget* tgrid::swap_child(const std::string& id,
|
|||
old->set_parent(new_parent);
|
||||
|
||||
widget->set_parent(this);
|
||||
widget->set_visible(old->get_visible());
|
||||
child.set_widget(widget);
|
||||
|
||||
return old;
|
||||
|
|
Loading…
Add table
Reference in a new issue