From 619a52635a7f4ac850fad63c8f8eb7e0dd958f35 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 10 Sep 2018 10:38:42 -0700 Subject: prefs: use correct way to set the cloud storage password preference Signed-off-by: Dirk Hohndel --- core/cloudstorage.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core') 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; -- cgit v1.2.3-70-g09d2