aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-core/qthelper.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2016-01-22 16:55:03 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-24 21:26:45 -0800
commitc3137cf07c6947b162d3fae9cb580fe1efc78ec7 (patch)
tree28b907481dd71effc0dbd266c8b920785565c062 /subsurface-core/qthelper.cpp
parent15fece7da2c8e9c78fe6c61dbcea0c0b0654b6a8 (diff)
downloadsubsurface-c3137cf07c6947b162d3fae9cb580fe1efc78ec7.tar.gz
Language Settings Wrapper
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/qthelper.cpp')
-rw-r--r--subsurface-core/qthelper.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/subsurface-core/qthelper.cpp b/subsurface-core/qthelper.cpp
index 915f2636c..b8e168873 100644
--- a/subsurface-core/qthelper.cpp
+++ b/subsurface-core/qthelper.cpp
@@ -1273,6 +1273,7 @@ void loadPreferences()
QSettings s;
QVariant v;
+ uiLanguage(NULL);
s.beginGroup("Units");
if (s.value("unit_system").toString() == "metric") {
prefs.unit_system = METRIC;