mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
prefs: use correct way to set the cloud storage password preference
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2b3f6c607b
commit
619a52635a
1 changed files with 1 additions and 2 deletions
|
@ -64,8 +64,7 @@ void CloudStorageAuthenticate::uploadFinished()
|
||||||
csSettings.set_cloud_verification_status(qPref::CS_NEED_TO_VERIFY);
|
csSettings.set_cloud_verification_status(qPref::CS_NEED_TO_VERIFY);
|
||||||
report_error(qPrintable(tr("Cloud account verification required, enter PIN in preferences")));
|
report_error(qPrintable(tr("Cloud account verification required, enter PIN in preferences")));
|
||||||
} else if (cloudAuthReply == QLatin1String("[PASSWDCHANGED]")) {
|
} else if (cloudAuthReply == QLatin1String("[PASSWDCHANGED]")) {
|
||||||
free((void *)prefs.cloud_storage_password);
|
csSettings.set_cloud_storage_password(cloudNewPassword);
|
||||||
prefs.cloud_storage_password = strdup(qPrintable(cloudNewPassword));
|
|
||||||
cloudNewPassword.clear();
|
cloudNewPassword.clear();
|
||||||
emit passwordChangeSuccessful();
|
emit passwordChangeSuccessful();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue