Choose Metric/Imperial units in New Athlete dialog

fixes #34
This commit is contained in:
Damien
2012-11-26 23:13:56 +01:00
parent 6568a05703
commit 8eee2ddb25
48 changed files with 205 additions and 171 deletions

View File

@@ -321,7 +321,7 @@ ModelDataProvider::ModelDataProvider (BasicModelPlot &plot, ModelSettings *setti
{
// get application settings
cranklength = appsettings->value(NULL, GC_CRANKLENGTH, 0.0).toDouble() / 1000.0;
useMetricUnits = appsettings->value(NULL, GC_UNIT).toString() == "Metric";
useMetricUnits = plot.main->useMetricUnits;
// if there are no settings or incomplete settings
// create a null data plot