summaryrefslogtreecommitdiffhomepage
path: root/options/value.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'options/value.hpp')
-rw-r--r--options/value.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/options/value.hpp b/options/value.hpp
index 4d067af1..f0ecf0c7 100644
--- a/options/value.hpp
+++ b/options/value.hpp
@@ -31,7 +31,11 @@ public:
QString name() const { return self_name; }
base_value(bundle b, const QString& name) : b(b), self_name(name)
{
- b->on_bundle_created(name, this);
+ b->on_value_created(name, this);
+ }
+ ~base_value() override
+ {
+ b->on_value_destructed(self_name, this);
}
signals:
OPENTRACK_DEFINE_SIGNAL(double);