diff options
author | jan Iversen <jani@apache.org> | 2018-09-02 16:22:16 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-11 17:25:00 -0700 |
commit | 684e334fb6098e604a91d140c1e2ea0883dff081 (patch) | |
tree | 99dd5050bb53385125aa5fa6dc69514acbc2b40e /core/cloudstorage.cpp | |
parent | 4d57b52062ab902dee8d82e453eda586ce78ab3e (diff) | |
download | subsurface-684e334fb6098e604a91d140c1e2ea0883dff081.tar.gz |
core: declare cloud_status in qPrefCloudStorage
qml declaration of cloud_status (defined in pref.h) does not
belong in qPref.h but in qPrefCloudStorage
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core/cloudstorage.cpp')
-rw-r--r-- | core/cloudstorage.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/cloudstorage.cpp b/core/cloudstorage.cpp index 264a7a8a0..001e0acdf 100644 --- a/core/cloudstorage.cpp +++ b/core/cloudstorage.cpp @@ -52,7 +52,7 @@ void CloudStorageAuthenticate::uploadFinished() qPrefCloudStorage csSettings(parent()); if (cloudAuthReply == QLatin1String("[VERIFIED]") || cloudAuthReply == QLatin1String("[OK]")) { - csSettings.set_cloud_verification_status(qPref::CS_VERIFIED); + csSettings.set_cloud_verification_status(qPrefCloudStorage::CS_VERIFIED); /* TODO: Move this to a correct place NotificationWidget *nw = MainWindow::instance()->getNotificationWidget(); if (nw->getNotificationText() == myLastError) @@ -61,7 +61,7 @@ void CloudStorageAuthenticate::uploadFinished() myLastError.clear(); } else if (cloudAuthReply == QLatin1String("[VERIFY]") || cloudAuthReply == QLatin1String("Invalid PIN")) { - csSettings.set_cloud_verification_status(qPref::CS_NEED_TO_VERIFY); + csSettings.set_cloud_verification_status(qPrefCloudStorage::CS_NEED_TO_VERIFY); report_error(qPrintable(tr("Cloud account verification required, enter PIN in preferences"))); } else if (cloudAuthReply == QLatin1String("[PASSWDCHANGED]")) { csSettings.set_cloud_storage_password(cloudNewPassword); @@ -69,7 +69,7 @@ void CloudStorageAuthenticate::uploadFinished() emit passwordChangeSuccessful(); return; } else { - csSettings.set_cloud_verification_status(qPref::CS_INCORRECT_USER_PASSWD); + csSettings.set_cloud_verification_status(qPrefCloudStorage::CS_INCORRECT_USER_PASSWD); myLastError = cloudAuthReply; report_error("%s", qPrintable(cloudAuthReply)); } |