From 3ba3de8dafcd6478c762f172ec8c54a77a13c7f6 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 22 Jul 2015 07:34:36 -0700 Subject: [PATCH] Add UI for cloud password change This isn't hooked up yet, just the UI elements. Signed-off-by: Dirk Hohndel --- qt-ui/preferences.cpp | 4 ++++ qt-ui/preferences.ui | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp index b30e76e03..4857e7491 100644 --- a/qt-ui/preferences.cpp +++ b/qt-ui/preferences.cpp @@ -110,6 +110,10 @@ void PreferencesDialog::cloudPinNeeded() ui.cloud_storage_pin->setVisible(prefs.cloud_verification_status == CS_NEED_TO_VERIFY); ui.cloud_storage_pin_label->setEnabled(prefs.cloud_verification_status == CS_NEED_TO_VERIFY); ui.cloud_storage_pin_label->setVisible(prefs.cloud_verification_status == CS_NEED_TO_VERIFY); + ui.cloud_storage_new_passwd->setEnabled(prefs.cloud_verification_status == CS_VERIFIED); + ui.cloud_storage_new_passwd->setVisible(prefs.cloud_verification_status == CS_VERIFIED); + ui.cloud_storage_new_passwd_label->setEnabled(prefs.cloud_verification_status == CS_VERIFIED); + ui.cloud_storage_new_passwd_label->setVisible(prefs.cloud_verification_status == CS_VERIFIED); if (prefs.cloud_verification_status == CS_VERIFIED) { ui.cloudStorageGroupBox->setTitle(tr("Subsurface cloud storage (credentials verified)")); ui.cloudDefaultFile->setEnabled(true); diff --git a/qt-ui/preferences.ui b/qt-ui/preferences.ui index 1b59e77a5..dc0d04a5a 100644 --- a/qt-ui/preferences.ui +++ b/qt-ui/preferences.ui @@ -1374,6 +1374,13 @@ + + + + New password + + + @@ -1391,6 +1398,10 @@ + + + +