From 309871bcc513298aa3760d9be3cc43d11553f761 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 25 Oct 2018 20:53:38 +0200 Subject: options/bundle: fix signals not firing The check for ini modified happens after ini modified flag is already cleared. Was breaking spline. --- options/bundle.cpp | 7 +------ 1 file changed, 1 insertion(+), 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 make_bundle(const QString& name) { - if (name.size()) + if (!name.isEmpty()) return detail::bundler::bundler_singleton().make_bundle_(name); else return std::make_shared(QString()); -- cgit v1.2.3