Altitude scale present with no altitude data.

Uncheck the channel if not present. Fixes #295.
This commit is contained in:
Damien
2011-08-01 22:27:30 +02:00
committed by Mark Liversedge
parent 610b2ea2d0
commit 20477e1670

View File

@@ -616,12 +616,16 @@ AllPlotWindow::setAllPlotWidgets(RideItem *ride)
showCad->setEnabled(dataPresent->cad);
showAlt->setEnabled(dataPresent->alt);
showHr->setChecked(dataPresent->hr);
showSpeed->setChecked(dataPresent->kph);
showCad->setChecked(dataPresent->cad);
showAlt->setChecked(dataPresent->alt);
} else {
showPower->setEnabled(false);
showHr->setEnabled(false);
showSpeed->setEnabled(false);
showCad->setEnabled(false);
showAlt->setEnabled(false);
showPower->setEnabled(false);
showHr->setEnabled(false);
showSpeed->setEnabled(false);
showCad->setEnabled(false);
showAlt->setEnabled(false);
}
// turn on/off shading, if it's not available