diff options
Diffstat (limited to 'core/cloudstorage.cpp')
-rw-r--r-- | core/cloudstorage.cpp | 3 |
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; |