aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-16 23:41:28 +0800
committercrupest <crupest@outlook.com>2022-02-16 23:41:28 +0800
commit77e0fd5cf7dd35324a7c3a43f2004fb923c6254c (patch)
tree0d66fd74fa61bb680ac0ae35c9faa4e5d853f295 /include/cru/ui/controls
parent9307bd1af7c52aaf9c6d25b598bf3069a63c32a1 (diff)
downloadcru-77e0fd5cf7dd35324a7c3a43f2004fb923c6254c.tar.gz
cru-77e0fd5cf7dd35324a7c3a43f2004fb923c6254c.tar.bz2
cru-77e0fd5cf7dd35324a7c3a43f2004fb923c6254c.zip
...
Diffstat (limited to 'include/cru/ui/controls')
-rw-r--r--include/cru/ui/controls/Control.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cru/ui/controls/Control.h b/include/cru/ui/controls/Control.h
index 4dad4549..3293969d 100644
--- a/include/cru/ui/controls/Control.h
+++ b/include/cru/ui/controls/Control.h
@@ -157,6 +157,8 @@ class CRU_UI_API Control : public Object {
host::WindowHost* new_host);
private:
+ bool in_destruction_ = false;
+
Control* parent_ = nullptr;
host::WindowHost* window_host_ = nullptr;