mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user