diff options
Diffstat (limited to 'desktop-widgets/preferences/preferences_units.cpp')
-rw-r--r-- | desktop-widgets/preferences/preferences_units.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/preferences/preferences_units.cpp b/desktop-widgets/preferences/preferences_units.cpp index db23efd37..ccb7620cf 100644 --- a/desktop-widgets/preferences/preferences_units.cpp +++ b/desktop-widgets/preferences/preferences_units.cpp @@ -50,7 +50,7 @@ void PreferencesUnits::syncSettings() QString unitSystem[] = {"metric", "imperial", "personal"}; short unitValue = ui->metric->isChecked() ? METRIC : (ui->imperial->isChecked() ? IMPERIAL : PERSONALIZE); - qPrefUnits::set_unit_system(unitSystem[unitValue]); + qPrefUnits::set_unit_system((unit_system_values)unitValue); qPrefUnits::set_temperature(ui->fahrenheit->isChecked() ? units::FAHRENHEIT : units::CELSIUS); qPrefUnits::set_length(ui->feet->isChecked() ? units::FEET : units::METERS); qPrefUnits::set_pressure(ui->psi->isChecked() ? units::PSI : units::BAR); |