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>
This commit is contained in:
Dirk Hohndel 2018-09-22 10:24:38 -07:00
parent b5fe44bb87
commit f5411b7d68
2 changed files with 16 additions and 0 deletions

View file

@ -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());

View file

@ -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;