mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
ed4e7e3fc4
commit
77352751fa
1 changed files with 0 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue