Fix to 'No data' showing on first import above graphs

This commit is contained in:
Mark Watkins 2011-07-28 22:22:34 +10:00
parent 7f9e49c3d7
commit 3df94fffcd

View File

@ -462,7 +462,7 @@ void Daily::Load(QDate date)
if (!cpap && !oxi) { if (!cpap && !oxi) {
gSplitter->setMinimumHeight(0); gSplitter->setMinimumHeight(0);
NoData->setText(tr("No data for ")+date.toString(Qt::SystemLocaleLongDate)); NoData->setText(tr("No data for ")+date.toString(Qt::SystemLocaleLongDate));
if (!NoData->isVisible()) NoData->show(); NoData->show();
for (unsigned i=0;i<Graphs.size();i++) { for (unsigned i=0;i<Graphs.size();i++) {
Graphs[i]->hide(); Graphs[i]->hide();
} }
@ -470,7 +470,7 @@ void Daily::Load(QDate date)
//if (SF->isVisible()) SF->hide(); //if (SF->isVisible()) SF->hide();
} else { } else {
if (NoData->isVisible()) NoData->hide(); NoData->hide();
int vis=1; int vis=1;
for (unsigned i=0;i<Graphs.size();i++) { for (unsigned i=0;i<Graphs.size();i++) {
if (Graphs[i]->isEmpty()) { if (Graphs[i]->isEmpty()) {