diff --git a/src/IntervalSummaryWindow.cpp b/src/IntervalSummaryWindow.cpp index d4bcdfa9f..c081b0078 100644 --- a/src/IntervalSummaryWindow.cpp +++ b/src/IntervalSummaryWindow.cpp @@ -34,6 +34,9 @@ IntervalSummaryWindow::~IntervalSummaryWindow() { void IntervalSummaryWindow::intervalSelected() { + // if no ride available don't bother + if (mainWindow->currentRideItem() == NULL || mainWindow->currentRide() == NULL) return; + QString html; if (mainWindow->allIntervalItems() != NULL) { for (int i=0; iallIntervalItems()->childCount(); i++) {