summaryrefslogtreecommitdiffhomepage
path: root/options/bundle.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-18 14:53:00 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-18 17:05:13 +0200
commita18ca7764abbe24b601885ef06fcc98f0b7ed10b (patch)
tree1381ca22c6b2e68f5e43f0443435863eb3578c77 /options/bundle.cpp
parent132a1925340bcd75a88f831a3487044736dccb4a (diff)
options: factor out connector out of bundle
Diffstat (limited to 'options/bundle.cpp')
-rw-r--r--options/bundle.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/options/bundle.cpp b/options/bundle.cpp
index fa1a214c..a080bb77 100644
--- a/options/bundle.cpp
+++ b/options/bundle.cpp
@@ -1,4 +1,7 @@
#include "bundle.hpp"
+#include "value.hpp"
+
+using options::base_value;
namespace options
{
@@ -20,6 +23,8 @@ void bundle::reload()
QMutexLocker l(&mtx);
saved = group(group_name);
transient = saved;
+
+ connector::notify_all_values();
}
emit reloading();
}
@@ -29,6 +34,8 @@ void bundle::store_kv(const QString& name, const QVariant& datum)
QMutexLocker l(&mtx);
transient.put(name, datum);
+
+ connector::notify_values(name);
}
bool bundle::contains(const QString &name) const