diff --git a/desktop-widgets/preferences/preferences_cloud.cpp b/desktop-widgets/preferences/preferences_cloud.cpp index e132539da..4902e7e10 100644 --- a/desktop-widgets/preferences/preferences_cloud.cpp +++ b/desktop-widgets/preferences/preferences_cloud.cpp @@ -7,6 +7,7 @@ #include "core/settings/qPrefCloudStorage.h" #include #include +#include PreferencesCloud::PreferencesCloud() : AbstractPreferencesWidget(tr("Cloud"),QIcon(":preferences-cloud-icon"), 9), ui(new Ui::PreferencesCloud()) { @@ -22,6 +23,11 @@ PreferencesCloud::~PreferencesCloud() delete ui; } +void PreferencesCloud::on_resetPassword_clicked() +{ + QDesktopServices::openUrl(QUrl("https://cloud.subsurface-divelog.org/passwordreset")); +} + void PreferencesCloud::refreshSettings() { ui->cloud_storage_email->setText(prefs.cloud_storage_email); diff --git a/desktop-widgets/preferences/preferences_cloud.h b/desktop-widgets/preferences/preferences_cloud.h index d2a7f9d62..52c39160b 100644 --- a/desktop-widgets/preferences/preferences_cloud.h +++ b/desktop-widgets/preferences/preferences_cloud.h @@ -20,6 +20,7 @@ public: public slots: void updateCloudAuthenticationState(); void passwordUpdateSuccessful(); + void on_resetPassword_clicked(); private: Ui::PreferencesCloud *ui; diff --git a/desktop-widgets/preferences/preferences_cloud.ui b/desktop-widgets/preferences/preferences_cloud.ui index b6573c3a6..2f064dad2 100644 --- a/desktop-widgets/preferences/preferences_cloud.ui +++ b/desktop-widgets/preferences/preferences_cloud.ui @@ -102,6 +102,24 @@ + + + + + If you have a cloud account and forgot your password, you can reset it here: + + + + + + + Reset Password + + + + + + @@ -111,7 +129,7 @@ - + @@ -121,7 +139,7 @@ - + @@ -131,7 +149,7 @@ - +