summaryrefslogtreecommitdiffhomepage
path: root/options
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-09 22:55:35 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-09 23:09:08 +0200
commiteea62e517c2d2e7cbc633e812d54e1ee9ce6c757 (patch)
tree962a1ee84a64f8a0c800e69fb5abe01292ddcb75 /options
parent75c9406abf2d090208a06bb6fa7871a141c1fa02 (diff)
options/bundle: remove rest of logspam
Diffstat (limited to 'options')
-rw-r--r--options/bundle.cpp16
-rw-r--r--options/bundle.hpp2
2 files changed, 9 insertions, 9 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;
}
}
diff --git a/options/bundle.hpp b/options/bundle.hpp
index b1c93b3d..27d1208a 100644
--- a/options/bundle.hpp
+++ b/options/bundle.hpp
@@ -61,7 +61,7 @@ public:
bool contains(const QString& name) const;
void save();
void save_deferred(QSettings& s);
- bool is_modified(bool logspam) const;
+ bool is_modified() const;
template<typename t>
t get(const QString& name) const