BlankState: No data available for AllPlotWindow

Use the default blank state in AllPlotWindow when data not present
This commit is contained in:
Damien
2013-02-04 22:12:40 +01:00
parent 72aad14755
commit d91576ff5f

View File

@@ -593,8 +593,11 @@ AllPlotWindow::rideSelected()
// ignore if null, or manual / empty
if (!ride || !ride->ride() || !ride->ride()->dataPoints().count()) {
current = NULL;
setIsBlank(true);
return;
}
else
setIsBlank(false);
// we already plotted it!
if (ride == current && stale == false) return;