summaryrefslogtreecommitdiffhomepage
path: root/options/bundle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'options/bundle.cpp')
-rw-r--r--options/bundle.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/options/bundle.cpp b/options/bundle.cpp
index a60810c5..fa1a214c 100644
--- a/options/bundle.cpp
+++ b/options/bundle.cpp
@@ -37,7 +37,7 @@ bool bundle::contains(const QString &name) const
return transient.contains(name);
}
-void bundle::save()
+void bundle::save_deferred(QSettings& s)
{
if (group_name == "")
return;
@@ -51,7 +51,7 @@ void bundle::save()
qDebug() << "bundle" << group_name << "changed, saving";
modified_ = true;
saved = transient;
- saved.save();
+ saved.save_deferred(s);
}
}
@@ -59,6 +59,11 @@ void bundle::save()
emit saving();
}
+void bundle::save()
+{
+ save_deferred(*group::ini_file());
+}
+
bool bundle::modifiedp() const // XXX unused
{
QMutexLocker l(const_cast<QMutex*>(&mtx));