summaryrefslogtreecommitdiffhomepage
path: root/options/value.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'options/value.hpp')
-rw-r--r--options/value.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/options/value.hpp b/options/value.hpp
index 85b76cb6..090a7bdf 100644
--- a/options/value.hpp
+++ b/options/value.hpp
@@ -95,6 +95,19 @@ public:
}
never_inline
+ void notify_() const override
+ {
+ auto x = get();
+ {
+ QMutexLocker l(&mtx);
+ cached_value = x;
+ }
+ maybe_trace("notify +");
+ emit valueChanged(traits::storage_from_value(x));
+ maybe_trace("notify -");
+ }
+
+ never_inline
void notify() const override
{
if (is_null())