mobile-widgets: remove setCredentialStatus() from saveCloudCredentials()
Revert to the divelist by setting oldStatus() directly to set_cloud_verification_status() This is done to further limit the use of setCredentialStatus() and prepare to remove qmlPrefs. Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
814f6b3579
commit
0c840ba22a
@ -526,7 +526,7 @@ void QMLManager::saveCloudCredentials(const QString &newEmail, const QString &ne
|
|||||||
if (qPrefCloudStorage::cloud_verification_status() != qPrefCloudStorage::CS_NOCLOUD &&
|
if (qPrefCloudStorage::cloud_verification_status() != qPrefCloudStorage::CS_NOCLOUD &&
|
||||||
!cloudCredentialsChanged) {
|
!cloudCredentialsChanged) {
|
||||||
// just go back to the dive list
|
// just go back to the dive list
|
||||||
QMLPrefs::instance()->setCredentialStatus(QMLPrefs::instance()->oldStatus());
|
qPrefCloudStorage::set_cloud_verification_status(QMLPrefs::instance()->oldStatus());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!noCloud &&
|
if (!noCloud &&
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user