diff options
-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; |