mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +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
@@ -134,20 +134,7 @@ void ConfigDialog::changePage(QListWidgetItem *current, QListWidgetItem *previou
|
||||
// ! new mode: change the CP associated with the present mode
|
||||
void ConfigDialog::save_Clicked()
|
||||
{
|
||||
QDir home = QDir();
|
||||
QSettings *settings;
|
||||
|
||||
if(!home.exists("Library/GoldenCheetah"))
|
||||
{
|
||||
settings = new QSettings(GC_SETTINGS_CO, GC_SETTINGS_APP);
|
||||
home = QDir::home();
|
||||
}
|
||||
else
|
||||
{
|
||||
settings = new QSettings(home.absolutePath()+"/gc", QSettings::IniFormat);
|
||||
|
||||
}
|
||||
|
||||
boost::shared_ptr<QSettings> settings = GetApplicationSettings();
|
||||
settings->setValue(GC_UNIT, configPage->unitCombo->currentText());
|
||||
settings->setValue(GC_ALLRIDES_ASCENDING, configPage->allRidesAscending->checkState());
|
||||
settings->setValue(GC_CRANKLENGTH, configPage->crankLengthCombo->currentText());
|
||||
|
||||
Reference in New Issue
Block a user