summaryrefslogtreecommitdiffhomepage
path: root/options/bundle.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-10-25 20:53:38 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-10-25 20:53:38 +0200
commit309871bcc513298aa3760d9be3cc43d11553f761 (patch)
tree74714fae6ebc64112b1d6022e2328677d061efac /options/bundle.cpp
parentb4bcc249393274dfc05dc5290af23f3e8fe76248 (diff)
options/bundle: fix signals not firing
The check for ini modified happens after ini modified flag is already cleared. Was breaking spline.
Diffstat (limited to 'options/bundle.cpp')
-rw-r--r--options/bundle.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/options/bundle.cpp b/options/bundle.cpp
index 7347dc88..8db4f906 100644
--- a/options/bundle.cpp
+++ b/options/bundle.cpp
@@ -39,9 +39,6 @@ bundle::~bundle() = default;
void bundle::reload()
{
- if (!is_ini_modified())
- return;
-
if (!group_name.isEmpty())
{
QMutexLocker l(&mtx);
@@ -53,8 +50,6 @@ void bundle::reload()
saved = group(group_name);
transient = saved;
- mark_ini_modified(false);
-
connector::notify_all_values();
emit reloading();
emit changed();
@@ -185,7 +180,7 @@ namespace options {
std::shared_ptr<bundle_> make_bundle(const QString& name)
{
- if (name.size())
+ if (!name.isEmpty())
return detail::bundler::bundler_singleton().make_bundle_(name);
else
return std::make_shared<bundle_>(QString());