mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Fix to 'No data' showing on first import above graphs
This commit is contained in:
parent
7f9e49c3d7
commit
3df94fffcd
@ -462,7 +462,7 @@ void Daily::Load(QDate date)
|
||||
if (!cpap && !oxi) {
|
||||
gSplitter->setMinimumHeight(0);
|
||||
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++) {
|
||||
Graphs[i]->hide();
|
||||
}
|
||||
@ -470,7 +470,7 @@ void Daily::Load(QDate date)
|
||||
//if (SF->isVisible()) SF->hide();
|
||||
|
||||
} else {
|
||||
if (NoData->isVisible()) NoData->hide();
|
||||
NoData->hide();
|
||||
int vis=1;
|
||||
for (unsigned i=0;i<Graphs.size();i++) {
|
||||
if (Graphs[i]->isEmpty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user