make ride plot work for manual rides

I don't like disabling the ride plot tab when I select a manual ride,
because I frequently scroll through the ride list to search for a ride
by the shape of its ride plot, and every time I hit a manual ride I get
bounced to the CP plot tab.  So rather than disable the ride plot tab,
just make it show an empty plot.
This commit is contained in:
Sean Rhea
2009-11-09 09:20:24 -08:00
parent 1edd8c0767
commit db943fbcd6
3 changed files with 5 additions and 5 deletions

View File

@@ -168,7 +168,7 @@ AllPlotWindow::setSmoothingFromLineEdit()
void
AllPlotWindow::setAllPlotWidgets(RideItem *ride)
{
if (ride->ride) {
if (ride->ride && ride->ride->deviceType() != QString("Manual CSV")) {
const RideFileDataPresent *dataPresent = ride->ride->areDataPresent();
showPower->setEnabled(dataPresent->watts);
showHr->setEnabled(dataPresent->hr);