mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
4b68329c9d
commit
b9b1f03f0d
7 changed files with 58 additions and 315 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue