From 23ef59b6aa14874e3b68c8716c137eb65583cd63 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 11 Apr 2020 00:01:51 +0800 Subject: ... --- src/ui/layout_control.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/layout_control.cpp') 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); } -- cgit v1.2.3