aboutsummaryrefslogtreecommitdiff
path: root/src/ui/ContentControl.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-10-28 20:51:55 +0800
committercrupest <crupest@outlook.com>2020-10-28 20:51:55 +0800
commit6ce70ed4b08c7db20b6b384be26c7fc4e11c98de (patch)
tree208ca80036c186d18e0ec25491881a760075ae83 /src/ui/ContentControl.cpp
parent8f27c928c2ce4f3617c9113582a93da10721114c (diff)
downloadcru-6ce70ed4b08c7db20b6b384be26c7fc4e11c98de.tar.gz
cru-6ce70ed4b08c7db20b6b384be26c7fc4e11c98de.tar.bz2
cru-6ce70ed4b08c7db20b6b384be26c7fc4e11c98de.zip
...
Diffstat (limited to 'src/ui/ContentControl.cpp')
-rw-r--r--src/ui/ContentControl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/ContentControl.cpp b/src/ui/ContentControl.cpp
index 8d1a17d2..60d944d6 100644
--- a/src/ui/ContentControl.cpp
+++ b/src/ui/ContentControl.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 host = GetUiHost();
+ const auto host = GetWindowHost();
const auto old_child = child_;
child_ = child;
if (old_child) {
old_child->_SetParent(nullptr);
- old_child->_SetDescendantUiHost(nullptr);
+ old_child->_SetDescendantWindowHost(nullptr);
}
if (child) {
child->_SetParent(this);
- child->_SetDescendantUiHost(host);
+ child->_SetDescendantWindowHost(host);
}
OnChildChanged(old_child, child);
}