mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 19:50:45 +00:00
Fixed Graph Switched Off message in daily view
This commit is contained in:
parent
59ff9bf2f4
commit
e4132512f5
@ -656,7 +656,9 @@ void Daily::Load(QDate date)
|
|||||||
CPAPMode mode=MODE_UNKNOWN;
|
CPAPMode mode=MODE_UNKNOWN;
|
||||||
QString a;
|
QString a;
|
||||||
bool isBrick=false;
|
bool isBrick=false;
|
||||||
|
if (graphsAvailable==0) {
|
||||||
|
GraphView->setEmptyText(tr("No Data"));
|
||||||
|
}
|
||||||
GraphView->setCubeImage(images["nodata"]);
|
GraphView->setCubeImage(images["nodata"]);
|
||||||
if (cpap) {
|
if (cpap) {
|
||||||
if (GraphView->isEmpty()) {
|
if (GraphView->isEmpty()) {
|
||||||
@ -665,9 +667,7 @@ void Daily::Load(QDate date)
|
|||||||
|
|
||||||
isBrick=true;
|
isBrick=true;
|
||||||
} else {
|
} else {
|
||||||
if (graphsAvailable==0) {
|
if (graphsAvailable>0) {
|
||||||
GraphView->setEmptyText(tr("No Data"));
|
|
||||||
} else {
|
|
||||||
GraphView->setEmptyText(tr("Graphs Switched Off"));
|
GraphView->setEmptyText(tr("Graphs Switched Off"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user