diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-03-11 15:21:23 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-03-11 15:23:42 -0800 |
commit | ae9ab680960532a79103c0481d525ac0e9cb5c71 (patch) | |
tree | e2de20ff39341d05b75f75b331c6c1a8a78bf716 /mobile-widgets/qmlmanager.cpp | |
parent | 11a8ab6b1b54e34559d57ef31ecb6f7f94b5f765 (diff) | |
download | subsurface-ae9ab680960532a79103c0481d525ac0e9cb5c71.tar.gz |
Correctly sync unit system to Subsurface-mobile
We were doing the right thing switching from metric to imperial, but in
order to swtich back you had to restart. Now it works both ways.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index a2a635a1b..0c0fdb5c4 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -154,6 +154,8 @@ void QMLManager::openLocalThenRemote(QString url) 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; |