aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/border_delegate.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-10-01 23:20:39 +0800
committercrupest <crupest@outlook.com>2018-10-01 23:20:39 +0800
commitc9a423ef94f684ff21e79526f77f8ddc31a2100d (patch)
treee8c1e66748ad5200be81439370b3cf409c9e95dc /src/ui/controls/border_delegate.cpp
parent88765aab936724cb01fa2ffd86d65181182a1cd2 (diff)
downloadcru-c9a423ef94f684ff21e79526f77f8ddc31a2100d.tar.gz
cru-c9a423ef94f684ff21e79526f77f8ddc31a2100d.tar.bz2
cru-c9a423ef94f684ff21e79526f77f8ddc31a2100d.zip
Add comment for BorderDelegate and add destructor for it.
Diffstat (limited to 'src/ui/controls/border_delegate.cpp')
-rw-r--r--src/ui/controls/border_delegate.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/controls/border_delegate.cpp b/src/ui/controls/border_delegate.cpp
index 4e841a8c..4031d787 100644
--- a/src/ui/controls/border_delegate.cpp
+++ b/src/ui/controls/border_delegate.cpp
@@ -51,6 +51,11 @@ namespace cru::ui::controls
border_property_->AddPropertyChangedListener(border_property_changed_listener_);
}
+ BorderDelegate::~BorderDelegate()
+ {
+ border_property_->RemovePropertyChangedListener(border_property_changed_listener_);
+ }
+
void BorderDelegate::SetBorderProperty(std::shared_ptr<BorderProperty> border_property)
{
border_property_->RemovePropertyChangedListener(border_property_changed_listener_);