diff options
author | jan Iversen <jani@apache.org> | 2018-07-14 16:52:25 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-07-21 07:49:25 -0700 |
commit | b9b1f03f0d77f1eea86efeed8776a623bd5b30ee (patch) | |
tree | 1804b5204b538d082673ed0223768de2f602bb95 /desktop-widgets/subsurfacewebservices.cpp | |
parent | 4b68329c9db7ed13eaed7dd36ce6c82b1d7d11ca (diff) | |
download | subsurface-b9b1f03f0d77f1eea86efeed8776a623bd5b30ee.tar.gz |
core: activate qPrefCloudStorage
remove CloudStorage from SettingsObjectWrapper and reference qPrefCloudStorage
update files using SettingsObjectWrapper/CloudStorage to use qPrefCloudStorage
this activated qPrefCloudStorage and removed the similar class from
SettingsObjectWrapper.
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'desktop-widgets/subsurfacewebservices.cpp')
-rw-r--r-- | desktop-widgets/subsurfacewebservices.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/subsurfacewebservices.cpp b/desktop-widgets/subsurfacewebservices.cpp index 5ed068d2f..d1af7715d 100644 --- a/desktop-widgets/subsurfacewebservices.cpp +++ b/desktop-widgets/subsurfacewebservices.cpp @@ -2,6 +2,7 @@ #include "desktop-widgets/subsurfacewebservices.h" #include "core/qthelper.h" #include "core/webservice.h" +#include "core/settings/qPref.h" #include "desktop-widgets/mainwindow.h" #include "desktop-widgets/usersurvey.h" #include "core/divelist.h" @@ -9,7 +10,6 @@ #include "desktop-widgets/tab-widgets/maintab.h" #include "core/display.h" #include "core/membuffer.h" -#include "core/subsurface-qt/SettingsObjectWrapper.h" #include <errno.h> #include "core/cloudstorage.h" #include "core/subsurface-string.h" @@ -436,7 +436,7 @@ void SubsurfaceWebServices::buttonClicked(QAbstractButton *button) QSettings s; QString qDialogUid = ui.userID->text().toUpper(); bool qSaveUid = ui.saveUidLocal->checkState(); - SettingsObjectWrapper::instance()->cloud_storage->setSaveUserIdLocal(qSaveUid); + qPrefCloudStorage::instance()->set_save_userid_local(qSaveUid); //WARN: Dirk, this seems to be wrong, I coundn't really understand the code. if (qSaveUid) { |