mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
Fallback to Start with Cycling HR zones for Running
When there is no Running HR zones defined to easy transition from current config. Fixes #1958
This commit is contained in:
@@ -115,6 +115,11 @@ Athlete::Athlete(Context *context, const QDir &homeDir)
|
||||
} else if (! hrzones_[i]->warningString().isEmpty()) {
|
||||
QMessageBox::warning(context->mainWindow, tr("Reading HR Zones File %1").arg(hrzones_[i]->fileName()), hrzones_[i]->warningString());
|
||||
}
|
||||
} else if (i == 1) { // No running HR zones
|
||||
// Start with Cycling HR zones for backward compatibilty
|
||||
QFile hrzonesFile(home->config().canonicalPath() + "/" + hrzones_[0]->fileName());
|
||||
// Load without error/warning report to avoid repetition
|
||||
if (hrzonesFile.exists()) hrzones_[i]->read(hrzonesFile);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user