summaryrefslogtreecommitdiffstats
path: root/qt-ui/preferences.cpp
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2013-12-08 14:18:26 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-08 16:17:43 +0100
commite39ec4e56455e09ed38d98cbb825580735e8e7ed (patch)
tree29e50e367c9ebf6886b296a33a934af1fe0a83db /qt-ui/preferences.cpp
parentf84e4ef4ee8c66f19a69db114e763ddc27d3c001 (diff)
downloadsubsurface-e39ec4e56455e09ed38d98cbb825580735e8e7ed.tar.gz
Fix units boxes in preference panel
The groupBox-es got renamed, and thus the unit-systems radio-buttons was enabling/disabling the wrong buttons. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/preferences.cpp')
-rw-r--r--qt-ui/preferences.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp
index 399d81dca..a373ef095 100644
--- a/qt-ui/preferences.cpp
+++ b/qt-ui/preferences.cpp
@@ -68,7 +68,7 @@ void PreferencesDialog::setUiFromPrefs()
ui.all_tissues->setChecked(prefs.calc_all_tissues);
ui.calc_ndl_tts->setEnabled(ui.calculated_ceiling->isChecked());
ui.calc_ndl_tts->setChecked(prefs.calc_ndl_tts);
- ui.groupBox->setEnabled(ui.personalize->isChecked());
+ ui.units_group->setEnabled(ui.personalize->isChecked());
ui.gflow->setValue(prefs.gflow);
ui.gfhigh->setValue(prefs.gfhigh);
@@ -92,6 +92,7 @@ void PreferencesDialog::setUiFromPrefs()
ui.cuft->setChecked(prefs.units.volume == units::CUFT);
ui.kgs->setChecked(prefs.units.weight == units::KG);
ui.lbs->setChecked(prefs.units.weight == units::LBS);
+
ui.font->setFont(QString(prefs.divelist_font));
ui.fontsize->setValue(prefs.font_size);
ui.defaultfilename->setText(prefs.default_filename);