summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-08-12 21:58:25 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-14 09:09:06 -0700
commit691025fa2440d76e1b208a3ecd280a4aec646890 (patch)
tree6fb9cdbf743c6e6abb95c0f138530ca0e3d0cd09 /mobile-widgets
parent4a7864444ba5c90e4113e704a593d0fc4e6207b8 (diff)
downloadsubsurface-691025fa2440d76e1b208a3ecd280a4aec646890.tar.gz
core: activate qPrefGeneral
remove General from SettingsObjectWrapper and reference qPrefGeneral update files using SettingsObjectWrapper/General to use qPrefGeneral this activated qPrefGeneral and removed the similar class from SettingsObjectWrapper. Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qmlmanager.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 0c06f37ad..c9d9dfefb 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -1210,9 +1210,9 @@ void QMLManager::openNoCloudRepo()
if (git == dummy_git_repository) {
git_create_local_repo(filename);
set_filename(filename);
- auto s = SettingsObjectWrapper::instance()->general_settings;
- s->setDefaultFilename(filename);
- s->setDefaultFileBehavior(LOCAL_DEFAULT_FILE);
+ auto s = qPrefGeneral::instance();
+ s->set_default_filename(filename);
+ s->set_default_file_behavior(LOCAL_DEFAULT_FILE);
}
openLocalThenRemote(filename);
@@ -1226,9 +1226,9 @@ void QMLManager::saveChangesLocal()
char *filename = NOCLOUD_LOCALSTORAGE;
git_create_local_repo(filename);
set_filename(filename);
- auto s = SettingsObjectWrapper::instance()->general_settings;
- s->setDefaultFilename(filename);
- s->setDefaultFileBehavior(LOCAL_DEFAULT_FILE);
+ auto s = qPrefGeneral::instance();
+ s->set_default_filename(filename);
+ s->set_default_file_behavior(LOCAL_DEFAULT_FILE);
}
} else if (!m_loadFromCloud) {
// this seems silly, but you need a common ancestor in the repository in