summaryrefslogtreecommitdiffhomepage
path: root/spline
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-05-06 13:15:16 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-05-10 11:19:22 +0200
commit87c09c0ab5e1334e9877ee6fd7adeb1eb70d5929 (patch)
tree3f407f9d0fc947427729913cf60e2e5f9b962ce0 /spline
parent604914db84d0468c6c8d04dfe6491e3c15b670f7 (diff)
options: don't create QSettings all the time
Update usages.
Diffstat (limited to 'spline')
-rw-r--r--spline/spline.cpp9
-rw-r--r--spline/spline.hpp1
2 files changed, 2 insertions, 8 deletions
diff --git a/spline/spline.cpp b/spline/spline.cpp
index 195d68d6..58703e02 100644
--- a/spline/spline.cpp
+++ b/spline/spline.cpp
@@ -341,15 +341,10 @@ void spline::reload()
s->b->reload();
}
-void spline::save(QSettings& settings)
-{
- QMutexLocker foo(&_mutex);
- s->b->save_deferred(settings);
-}
-
void spline::save()
{
- save(*group::ini_file());
+ QMutexLocker foo(&_mutex);
+ s->b->save();
}
void spline::set_bundle(bundle b)
diff --git a/spline/spline.hpp b/spline/spline.hpp
index 067967b5..146837c8 100644
--- a/spline/spline.hpp
+++ b/spline/spline.hpp
@@ -70,7 +70,6 @@ public:
using settings = spline_detail::settings;
void reload();
- void save(QSettings& s);
void save();
void set_bundle(bundle b);