mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
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:
parent
b5fe44bb87
commit
f5411b7d68
2 changed files with 16 additions and 0 deletions
|
@ -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());
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue