From d87d97a794d0bdc25cd818cf4830e6caf27ca91a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 11 Mar 2017 15:44:55 -0800 Subject: [PATCH] Sync unit system to Subsurface-mobile (part 2) Missed a spot. Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.cpp | 2 ++ 1 file changed, 2 insertions(+) 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;