From 6f91be9eec668a2cb27f5065ac86ff1d55f1034b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 6 May 2017 10:36:46 +0200 Subject: options/bundle: skip needless compare-twice --- options/bundle.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'options/bundle.cpp') diff --git a/options/bundle.cpp b/options/bundle.cpp index 43f4a8e3..4d44521f 100644 --- a/options/bundle.cpp +++ b/options/bundle.cpp @@ -119,8 +119,7 @@ bool bundle::is_modified() const for (const auto& kv : saved.kvs) { - const QVariant other = transient.get(kv.first); - if (!transient.contains(kv.first) || !is_equal(kv.first, kv.second, other)) + if (!transient.contains(kv.first)) { //if (logspam) // qDebug() << "bundle" << group_name << "modified" << "key" << kv.first << "-" << other << "<>" << kv.second; -- cgit v1.2.3