From e4132512f5d68cdfd8c8d70043e94c7f62962f99 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Fri, 23 Dec 2011 01:33:47 +1000 Subject: [PATCH] Fixed Graph Switched Off message in daily view --- daily.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/daily.cpp b/daily.cpp index aa7a92ae..6ea4aabc 100644 --- a/daily.cpp +++ b/daily.cpp @@ -656,7 +656,9 @@ void Daily::Load(QDate date) CPAPMode mode=MODE_UNKNOWN; QString a; bool isBrick=false; - + if (graphsAvailable==0) { + GraphView->setEmptyText(tr("No Data")); + } GraphView->setCubeImage(images["nodata"]); if (cpap) { if (GraphView->isEmpty()) { @@ -665,9 +667,7 @@ void Daily::Load(QDate date) isBrick=true; } else { - if (graphsAvailable==0) { - GraphView->setEmptyText(tr("No Data")); - } else { + if (graphsAvailable>0) { GraphView->setEmptyText(tr("Graphs Switched Off")); } }