diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-09-22 10:24:38 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-23 11:49:30 -0700 |
commit | f5411b7d68b7f847e1d5c1eb0a75993eeb1b9fff (patch) | |
tree | 82609074be5fcb903c50e1cc2cd5800a735c486d /desktop-widgets/preferences | |
parent | b5fe44bb8716b68eddb5baf84bfd776dcb41fcdb (diff) | |
download | subsurface-f5411b7d68b7f847e1d5c1eb0a75993eeb1b9fff.tar.gz |
Desktop/settings: hook up button to clear remembered DCs
And at least admit that the reset settings button isn't hooked up at all.
OOOOPS.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/preferences')
-rw-r--r-- | desktop-widgets/preferences/preferences_defaults.cpp | 14 | ||||
-rw-r--r-- | desktop-widgets/preferences/preferences_defaults.h | 2 |
2 files changed, 16 insertions, 0 deletions
diff --git a/desktop-widgets/preferences/preferences_defaults.cpp b/desktop-widgets/preferences/preferences_defaults.cpp index 9cdaeb43f..4d8c2a7e1 100644 --- a/desktop-widgets/preferences/preferences_defaults.cpp +++ b/desktop-widgets/preferences/preferences_defaults.cpp @@ -5,6 +5,7 @@ #include "core/settings/qPrefGeneral.h" #include "core/settings/qPrefDisplay.h" #include "core/settings/qPrefCloudStorage.h" +#include "core/settings/qPrefDiveComputer.h" #include <QFileDialog> @@ -60,6 +61,19 @@ void PreferencesDefaults::on_extractVideoThumbnails_toggled(bool toggled) ui->ffmpegFile->setEnabled(toggled); } +void PreferencesDefaults::on_resetRememberedDCs_clicked() +{ + qPrefDiveComputer::set_vendor1(QString()); + qPrefDiveComputer::set_vendor2(QString()); + qPrefDiveComputer::set_vendor3(QString()); + qPrefDiveComputer::set_vendor4(QString()); +} + +void PreferencesDefaults::on_resetSettings_clicked() +{ + // apparently this button was never hooked up? +} + void PreferencesDefaults::refreshSettings() { ui->font->setCurrentFont(qPrefDisplay::divelist_font()); diff --git a/desktop-widgets/preferences/preferences_defaults.h b/desktop-widgets/preferences/preferences_defaults.h index 78150247c..431db4b88 100644 --- a/desktop-widgets/preferences/preferences_defaults.h +++ b/desktop-widgets/preferences/preferences_defaults.h @@ -22,6 +22,8 @@ public slots: void on_localDefaultFile_toggled(bool toggled); void on_ffmpegFile_clicked(); void on_extractVideoThumbnails_toggled(bool toggled); + void on_resetSettings_clicked(); + void on_resetRememberedDCs_clicked(); private: Ui::PreferencesDefaults *ui; |