From 77352751fa9ef4717ed6409f33297062c873b0b4 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Wed, 8 Jan 2020 09:34:37 +0100 Subject: 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 Signed-off-by: Dirk Hohndel --- core/settings/qPrefUnit.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'core/settings/qPrefUnit.cpp') 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); -- cgit v1.2.3-70-g09d2