summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/subsurface-qt/SettingsObjectWrapper.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/subsurface-qt/SettingsObjectWrapper.cpp b/core/subsurface-qt/SettingsObjectWrapper.cpp
index 009ca6403..101e6650c 100644
--- a/core/subsurface-qt/SettingsObjectWrapper.cpp
+++ b/core/subsurface-qt/SettingsObjectWrapper.cpp
@@ -1557,7 +1557,9 @@ int UnitsSettings::verticalSpeedTime() const
QString UnitsSettings::unitSystem() const
{
- return QString(); /*FIXME: there's no char * units on the prefs. */
+ return prefs.unit_system == METRIC ? QStringLiteral("metric")
+ : prefs.unit_system == IMPERIAL ? QStringLiteral("imperial")
+ : QStringLiteral("personalized");
}
bool UnitsSettings::coordinatesTraditional() const