<div dir="ltr">I'm getting the expected results with 4.5.2.689, so it does indeed look like this fixed it. (-;<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 20, 2016 at 10:45 AM, Miika Turkia <span dir="ltr"><<a href="mailto:miika.turkia@gmail.com" target="_blank">miika.turkia@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If unit_system is set to imperial, we need to set the units explicitly<br>
on mobile application.<br>
<br>
Fixes #993<br>
<br>
Signed-off-by: Miika Turkia <<a href="mailto:miika.turkia@gmail.com">miika.turkia@gmail.com</a>><br>
---<br>
 qt-mobile/qmlmanager.cpp | 4 ++++<br>
 1 file changed, 4 insertions(+)<br>
<br>
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp<br>
index d5e5706..ecaca04 100644<br>
--- a/qt-mobile/qmlmanager.cpp<br>
+++ b/qt-mobile/qmlmanager.cpp<br>
@@ -78,6 +78,8 @@ void QMLManager::finishSetup()<br>
                        appendTextToLog(QString("loading dives from cache failed %1").arg(error));<br>
                } else {<br>
                        prefs.unit_system = informational_prefs.unit_system;<br>
+                       if (informational_prefs.unit_system == IMPERIAL)<br>
+                               informational_prefs.units = IMPERIAL_units;<br>
                        prefs.units = informational_prefs.units;<br>
                        int i;<br>
                        struct dive *d;<br>
@@ -299,6 +301,8 @@ void QMLManager::loadDivesWithValidCredentials()<br>
                return;<br>
        }<br>
        prefs.unit_system = informational_prefs.unit_system;<br>
+       if (informational_prefs.unit_system == IMPERIAL)<br>
+               informational_prefs.units = IMPERIAL_units;<br>
        prefs.units = informational_prefs.units;<br>
        process_dives(false, false);<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.5.0<br>
<br>
_______________________________________________<br>
subsurface mailing list<br>
<a href="mailto:subsurface@subsurface-divelog.org">subsurface@subsurface-divelog.org</a><br>
<a href="http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface" rel="noreferrer" target="_blank">http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." -Douglas Adams<br></div></div>
</div>