mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 03:00:43 +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) {
|
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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user