From a57a2fd50fcdbea407b47262b3944535435b54d1 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Sat, 20 Apr 2013 11:18:01 +0100 Subject: [PATCH] Metric Distribution Show BlankState when no results for date selection. --- src/HistogramWindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/HistogramWindow.cpp b/src/HistogramWindow.cpp index a408eca9f..ed754d5ed 100644 --- a/src/HistogramWindow.cpp +++ b/src/HistogramWindow.cpp @@ -876,6 +876,9 @@ HistogramWindow::updateChart() } + if (results.count() == 0) setIsBlank(true); + else setIsBlank(false); + // setData using the summary metrics -- always reset since filters may // have changed, or perhaps the bin width... powerHist->setSeries(RideFile::none);