summaryrefslogtreecommitdiffhomepage
path: root/options
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-05-06 10:36:46 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-05-10 11:19:22 +0200
commit6f91be9eec668a2cb27f5065ac86ff1d55f1034b (patch)
treebfc4d74003a1fd9266532110297fda1fd5810917 /options
parent07c87d1d45af4a3c8111445ab6e6a7863b235d3a (diff)
options/bundle: skip needless compare-twice
Diffstat (limited to 'options')
-rw-r--r--options/bundle.cpp3
1 files changed, 1 insertions, 2 deletions
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<QVariant>(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;