diff options
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 12 |
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 |