summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index f1004c556..d8b73d636 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -379,10 +379,13 @@ void MainWindow::readSettings()
settings.endGroup();
settings.beginGroup("Units");
if (settings.value("unit_system").toString() == "metric") {
+ prefs.unit_system = METRIC;
prefs.units = SI_units;
} else if (settings.value("unit_system").toString() == "imperial") {
+ prefs.unit_system = IMPERIAL;
prefs.units = IMPERIAL_units;
} else {
+ prefs.unit_system = PERSONALIZE;
GET_UNIT(v, "length", length, units::FEET, units::METERS);
GET_UNIT(v, "pressure", pressure, units::PSI, units::BAR);
GET_UNIT(v, "volume", volume, units::CUFT, units::LITER);