aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/components/Component.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/components/Component.h')
-rw-r--r--include/cru/ui/components/Component.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cru/ui/components/Component.h b/include/cru/ui/components/Component.h
index 2625f445..a2f83149 100644
--- a/include/cru/ui/components/Component.h
+++ b/include/cru/ui/components/Component.h
@@ -30,6 +30,9 @@ class CRU_UI_API Component : public Object,
if (delete_by_parent_) delete this;
}
+ protected:
+ void OnPrepareDelete() override;
+
private:
bool delete_by_parent_ = false;
};