Language Settings Wrapper

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2016-01-22 16:55:03 -02:00 committed by Dirk Hohndel
parent 15fece7da2
commit c3137cf07c
4 changed files with 143 additions and 2 deletions

View file

@ -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;