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