diff options
author | jan Iversen <jan@casacondor.com> | 2020-01-08 09:34:37 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-20 09:55:57 -0800 |
commit | 77352751fa9ef4717ed6409f33297062c873b0b4 (patch) | |
tree | b64f069072e2224a1437b08d3bf121289bb71a1b /core | |
parent | ed4e7e3fc416831d9a5ff18bae9de2ca715b4f46 (diff) | |
download | subsurface-77352751fa9ef4717ed6409f33297062c873b0b4.tar.gz |
core/settings: removed unnecessary if
prefs.unit_system is set at the top, so no need to set it again.
Signed-off-by: jan Iversen <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/settings/qPrefUnit.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/core/settings/qPrefUnit.cpp b/core/settings/qPrefUnit.cpp index d995169d6..bd3b9f284 100644 --- a/core/settings/qPrefUnit.cpp +++ b/core/settings/qPrefUnit.cpp @@ -69,8 +69,6 @@ void qPrefUnits::set_unit_system(unit_system_values value) // because it sets all of prefs.units without calling the // setters prefs.units = IMPERIAL_units; - } else { - prefs.unit_system = PERSONALIZE; } disk_unit_system(true); emit instance()->unit_systemChanged(value); |