diff options
Diffstat (limited to 'src/ui/layout_control.cpp')
-rw-r--r-- | src/ui/layout_control.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/layout_control.cpp b/src/ui/layout_control.cpp index 90a825ff..1d5d1ede 100644 --- a/src/ui/layout_control.cpp +++ b/src/ui/layout_control.cpp @@ -19,7 +19,7 @@ void LayoutControl::AddChild(Control* control, const Index position) { children_.insert(this->children_.cbegin() + position, control); control->_SetParent(this); - control->_SetDescendantWindow(GetWindow()); + control->_SetDescendantUiHost(GetUiHost()); OnAddChild(control, position); } @@ -36,7 +36,7 @@ void LayoutControl::RemoveChild(const Index position) { children_.erase(i); child->_SetParent(nullptr); - child->_SetDescendantWindow(nullptr); + child->_SetDescendantUiHost(nullptr); OnRemoveChild(child, position); } |