mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
fix manual ride entry crash when no zones file
This is a partial patch based on code from Eric Murray. It changes just enough of ManyalRideDialog to fix a crash that otherwise occurs when the user doesn't have a zones file.
This commit is contained in:
@@ -226,11 +226,13 @@ ManualRideDialog::bsEstChanged()
|
||||
void
|
||||
ManualRideDialog::setBsEst()
|
||||
{
|
||||
if (estBSbyDistButton->isChecked()) {
|
||||
estBSFromDistance();
|
||||
}
|
||||
else {
|
||||
estBSFromTime();
|
||||
if (estBSbyDistButton) {
|
||||
if (estBSbyDistButton->isChecked()) {
|
||||
estBSFromDistance();
|
||||
}
|
||||
else {
|
||||
estBSFromTime();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user