aboutsummaryrefslogtreecommitdiff
path: root/src/ui/content_control.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-04-11 00:01:51 +0800
committercrupest <crupest@outlook.com>2020-04-11 00:01:51 +0800
commit23ef59b6aa14874e3b68c8716c137eb65583cd63 (patch)
tree3f15dbfe3115b03a19a49abb7fcbc27d9c440769 /src/ui/content_control.cpp
parent41e17e281ba31e9eff612017f5a2dafd847278b0 (diff)
downloadcru-23ef59b6aa14874e3b68c8716c137eb65583cd63.tar.gz
cru-23ef59b6aa14874e3b68c8716c137eb65583cd63.tar.bz2
cru-23ef59b6aa14874e3b68c8716c137eb65583cd63.zip
...
Diffstat (limited to 'src/ui/content_control.cpp')
-rw-r--r--src/ui/content_control.cpp6
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);
}