diff options
-rw-r--r-- | core/settings/qPrefUnit.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/settings/qPrefUnit.cpp b/core/settings/qPrefUnit.cpp index 8fe2477b9..e30b684ec 100644 --- a/core/settings/qPrefUnit.cpp +++ b/core/settings/qPrefUnit.cpp @@ -124,6 +124,15 @@ void qPrefUnits::set_unit_system(unit_system_values value) } disk_unit_system(true); emit instance()->unit_systemChanged(value); + emit instance()->unit_systemStringChanged(unit_system()); + emit instance()->volumeChanged(prefs.units.volume); + emit instance()->volumeStringChanged(volume()); + emit instance()->weightChanged(prefs.units.weight); + emit instance()->weightStringChanged(weight()); + emit instance()->lengthChanged(prefs.units.length); + emit instance()->lengthStringChanged(length()); + emit instance()->temperatureChanged(prefs.units.temperature); + emit instance()->temperatureStringChanged(temperature()); } DISK_LOADSYNC_ENUM(Units, "unit_system", unit_system_values, unit_system); |