mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-16 01:19:57 +00:00
Added to what Greg has done in regards to GC's settings. Fixed a bug regarding where power.zones file was being saved to.
This commit is contained in:
committed by
Sean Rhea
parent
243a28bb87
commit
72c40de966
@@ -179,13 +179,7 @@ AllPlot::AllPlot():
|
||||
distanceArray(NULL), altArray(NULL), interArray(NULL), smooth(30), bydist(false),
|
||||
shade_zones(false)
|
||||
{
|
||||
QSettings *settings;
|
||||
QDir home = QDir();
|
||||
if(!home.exists("Library/GoldenCheetah"))
|
||||
settings = new QSettings(GC_SETTINGS_CO, GC_SETTINGS_APP);
|
||||
else
|
||||
settings = new QSettings(home.absolutePath()+"/gc", QSettings::IniFormat);
|
||||
|
||||
boost::shared_ptr<QSettings> settings = GetApplicationSettings();
|
||||
unit = settings->value(GC_UNIT);
|
||||
|
||||
useMetricUnits = (unit.toString() == "Metric");
|
||||
|
||||
Reference in New Issue
Block a user