Skip to content

Commit

Permalink
only show degrees fahrenheit if measurement system is imperial us system
Browse files Browse the repository at this point in the history
  • Loading branch information
Maldela committed Jan 27, 2016
1 parent e67d596 commit 1667dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/guibase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ GUIBase::GUIBase(QObject *parent) : QObject(parent),

QLocale locale = QLocale::system();
QLocale::MeasurementSystem system = locale.measurementSystem();
m_unit = (system == QLocale::MetricSystem) ? 0 : 2;
m_unit = (system != QLocale::ImperialUSSystem) ? 0 : 2;

qmlRegisterType<Loader>();
qmlRegisterType<Hwmon>();
Expand Down

0 comments on commit 1667dc4

Please sign in to comment.