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

@@ -559,13 +559,10 @@ MainWindow::rideSelected()
// turn off tabs that don't make sense for manual file entry
if (ride->ride && ride->ride->deviceType() == QString("Manual CSV")) {
tabWidget->setTabEnabled(1,false); // Ride Plot
tabWidget->setTabEnabled(3,false); // Power Histogram
tabWidget->setTabEnabled(4,false); // PF/PV Plot
}
else {
// enable
tabWidget->setTabEnabled(1,true); // Ride Plot
tabWidget->setTabEnabled(3,true); // Power Histogram
tabWidget->setTabEnabled(4,true); // PF/PV Plot
}