diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-09 22:55:35 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-09 23:09:08 +0200 |
commit | eea62e517c2d2e7cbc633e812d54e1ee9ce6c757 (patch) | |
tree | 962a1ee84a64f8a0c800e69fb5abe01292ddcb75 /options/bundle.cpp | |
parent | 75c9406abf2d090208a06bb6fa7871a141c1fa02 (diff) |
options/bundle: remove rest of logspam
Diffstat (limited to 'options/bundle.cpp')
-rw-r--r-- | options/bundle.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/options/bundle.cpp b/options/bundle.cpp index 876599ce..e4c0ffbd 100644 --- a/options/bundle.cpp +++ b/options/bundle.cpp @@ -26,7 +26,7 @@ void bundle::reload(std::shared_ptr<QSettings> settings) { QMutexLocker l(&mtx); saved = group(group_name, settings); - const bool has_changes = is_modified(false); + const bool has_changes = is_modified(); transient = saved; if (has_changes) @@ -65,9 +65,9 @@ void bundle::save_deferred(QSettings& s) { QMutexLocker l(&mtx); - if (is_modified(true)) + if (is_modified()) { - qDebug() << "bundle" << group_name << "changed, saving"; + //qDebug() << "bundle" << group_name << "changed, saving"; modified_ = true; saved = transient; saved.save_deferred(s); @@ -83,7 +83,7 @@ void bundle::save() save_deferred(*group::ini_file()); } -bool bundle::is_modified(bool logspam) const +bool bundle::is_modified() const { QMutexLocker l(mtx); @@ -92,8 +92,8 @@ bool bundle::is_modified(bool logspam) const const QVariant other = saved.get<QVariant>(kv.first); if (!saved.contains(kv.first) || !is_equal(kv.first, kv.second, other)) { - if (logspam) - qDebug() << "bundle" << group_name << "modified" << "key" << kv.first << "-" << other << "<>" << kv.second; + //if (logspam) + // qDebug() << "bundle" << group_name << "modified" << "key" << kv.first << "-" << other << "<>" << kv.second; return true; } } @@ -103,8 +103,8 @@ bool bundle::is_modified(bool logspam) const const QVariant other = transient.get<QVariant>(kv.first); if (!transient.contains(kv.first) || !is_equal(kv.first, kv.second, other)) { - if (logspam) - qDebug() << "bundle" << group_name << "modified" << "key" << kv.first << "-" << other << "<>" << kv.second; + //if (logspam) + // qDebug() << "bundle" << group_name << "modified" << "key" << kv.first << "-" << other << "<>" << kv.second; return true; } } |