summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-03-11 15:44:55 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-03-11 16:09:06 -0800
commitd87d97a794d0bdc25cd818cf4830e6caf27ca91a (patch)
treebc64223bb009a6bf9a068245b74d8ace07cf6b35
parentac52034778bc5c82bb6c689d765b337b6d75b24a (diff)
downloadsubsurface-d87d97a794d0bdc25cd818cf4830e6caf27ca91a.tar.gz
Sync unit system to Subsurface-mobile (part 2)
Missed a spot. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--mobile-widgets/qmlmanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 0c0fdb5c4..b84ab61f8 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -543,6 +543,8 @@ void QMLManager::consumeFinishedLoad(timestamp_t currentDiveTimestamp)
prefs.unit_system = git_prefs.unit_system;
if (git_prefs.unit_system == IMPERIAL)
git_prefs.units = IMPERIAL_units;
+ else if (git_prefs.unit_system == METRIC)
+ git_prefs.units = SI_units;
prefs.units = git_prefs.units;
prefs.tankbar = git_prefs.tankbar;
prefs.dcceiling = git_prefs.dcceiling;