diff options
Diffstat (limited to 'src/ui/content_control.cpp')
-rw-r--r-- | src/ui/content_control.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/content_control.cpp b/src/ui/content_control.cpp index 5dcd89d9..eb13f4cb 100644 --- a/src/ui/content_control.cpp +++ b/src/ui/content_control.cpp @@ -12,16 +12,16 @@ void ContentControl::SetChild(Control* child) { Expects(!dynamic_cast<Window*>(child)); // Can't add a window as child. if (child == child_) return; - const auto window = GetWindow(); + const auto host = GetUiHost(); const auto old_child = child_; child_ = child; if (old_child) { old_child->_SetParent(nullptr); - old_child->_SetDescendantWindow(nullptr); + old_child->_SetDescendantUiHost(nullptr); } if (child) { child->_SetParent(this); - child->_SetDescendantWindow(window); + child->_SetDescendantUiHost(host); } OnChildChanged(old_child, child); } |