aboutsummaryrefslogtreecommitdiffstats
path: root/core/cloudstorage.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-10 10:38:42 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-10 16:26:49 -0700
commit619a52635a7f4ac850fad63c8f8eb7e0dd958f35 (patch)
tree3039b254a71309a423267dd061ae081922bc2009 /core/cloudstorage.cpp
parent2b3f6c607bf5eb7c6b24160832ba83ed60dca543 (diff)
downloadsubsurface-619a52635a7f4ac850fad63c8f8eb7e0dd958f35.tar.gz
prefs: use correct way to set the cloud storage password preference
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/cloudstorage.cpp')
-rw-r--r--core/cloudstorage.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/cloudstorage.cpp b/core/cloudstorage.cpp
index 24a536992..264a7a8a0 100644
--- a/core/cloudstorage.cpp
+++ b/core/cloudstorage.cpp
@@ -64,8 +64,7 @@ void CloudStorageAuthenticate::uploadFinished()
csSettings.set_cloud_verification_status(qPref::CS_NEED_TO_VERIFY);
report_error(qPrintable(tr("Cloud account verification required, enter PIN in preferences")));
} else if (cloudAuthReply == QLatin1String("[PASSWDCHANGED]")) {
- free((void *)prefs.cloud_storage_password);
- prefs.cloud_storage_password = strdup(qPrintable(cloudNewPassword));
+ csSettings.set_cloud_storage_password(cloudNewPassword);
cloudNewPassword.clear();
emit passwordChangeSuccessful();
return;