mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-23 14:10:45 +00:00
Fix sessionbar
This commit is contained in:
parent
0a67a16baa
commit
4719d4065d
sleepyhead
@ -1091,12 +1091,6 @@ QString Daily::getSleepTime(Day * cpap, Day * oxi)
|
||||
|
||||
void Daily::Load(QDate date)
|
||||
{
|
||||
if (sessbar) {
|
||||
sessbar->clear();
|
||||
sessbar->deleteLater();
|
||||
sessbar=NULL;
|
||||
}
|
||||
|
||||
dateDisplay->setText("<i>"+date.toString(Qt::SystemLocaleLongDate)+"</i>");
|
||||
previous_date=date;
|
||||
Day *cpap=PROFILE.GetDay(date,MT_CPAP);
|
||||
|
@ -169,7 +169,7 @@ void SessionBar::paintEvent(QPaintEvent *)
|
||||
|
||||
SegType mn=min();
|
||||
SegType mx=max();
|
||||
if (mx > mn)
|
||||
if (mx < mn)
|
||||
return;
|
||||
|
||||
SegType total=mx-mn;
|
||||
|
Loading…
Reference in New Issue
Block a user