From 550390d6d2f4e7ea21f6fa407e3b054a8ac12fd4 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 21 Aug 2016 17:37:27 +0200 Subject: options/bundle: emit changed() whenever any part of a bundle changes --- options/bundle.cpp | 3 +++ options/bundle.hpp | 1 + 2 files changed, 4 insertions(+) diff --git a/options/bundle.cpp b/options/bundle.cpp index 83981ddf..cf75097c 100644 --- a/options/bundle.cpp +++ b/options/bundle.cpp @@ -28,6 +28,7 @@ void bundle::reload() connector::notify_all_values(); emit reloading(); } + emit changed(); } void bundle::store_kv(const QString& name, const QVariant& datum) @@ -38,6 +39,8 @@ void bundle::store_kv(const QString& name, const QVariant& datum) if (group_name.size()) connector::notify_values(name); + + emit changed(); } bool bundle::contains(const QString &name) const diff --git a/options/bundle.hpp b/options/bundle.hpp index a948ac44..f83e6800 100644 --- a/options/bundle.hpp +++ b/options/bundle.hpp @@ -40,6 +40,7 @@ private: signals: void reloading(); void saving() const; + void changed() const; public: bundle(const QString& group_name); ~bundle() override {} -- cgit v1.2.3