From 0e2852e0cdc6344c42cfc41711ef8dddc983dc81 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sun, 10 Aug 2014 05:09:49 +1000 Subject: [PATCH] Fix show rebuild message --- sleepyhead/Graphs/gFlagsLine.cpp | 2 +- sleepyhead/mainwindow.cpp | 2 +- sleepyhead/mainwindow.ui | 16 ++++++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/sleepyhead/Graphs/gFlagsLine.cpp b/sleepyhead/Graphs/gFlagsLine.cpp index 20de6464..154a1290 100644 --- a/sleepyhead/Graphs/gFlagsLine.cpp +++ b/sleepyhead/Graphs/gFlagsLine.cpp @@ -147,7 +147,7 @@ void gFlagsGroup::SetDay(Day *d) if (m_empty) { if (d) { - m_empty = !d->channelExists(CPAP_Pressure); + m_empty = !(d->channelExists(CPAP_Pressure) || d->channelExists(CPAP_IPAP) || d->channelExists(CPAP_EPAP)); } } diff --git a/sleepyhead/mainwindow.cpp b/sleepyhead/mainwindow.cpp index ab96bfb7..02b352ec 100644 --- a/sleepyhead/mainwindow.cpp +++ b/sleepyhead/mainwindow.cpp @@ -265,7 +265,7 @@ MainWindow::MainWindow(QWidget *parent) : restoreGeometry(settings.value("MainWindow/geometry").toByteArray()); daily = new Daily(ui->tabWidget, nullptr); - ui->tabWidget->insertTab(1, daily, STR_TR_Daily); + ui->tabWidget->insertTab(2, daily, STR_TR_Daily); // Start with the Summary Tab diff --git a/sleepyhead/mainwindow.ui b/sleepyhead/mainwindow.ui index e624d5fc..d2c19353 100644 --- a/sleepyhead/mainwindow.ui +++ b/sleepyhead/mainwindow.ui @@ -1498,7 +1498,7 @@ QToolBox::tab:selected { 0 0 180 - 598 + 596 @@ -1912,7 +1912,7 @@ border: 2px solid #56789a; border-radius: 30px; 0 0 180 - 598 + 596 @@ -3060,7 +3060,7 @@ border-radius: 10px; 0 0 180 - 598 + 596 @@ -3122,7 +3122,7 @@ border-radius: 10px; 0 0 975 - 21 + 22 @@ -3162,9 +3162,9 @@ border-radius: 10px; - + @@ -3405,7 +3405,7 @@ border-radius: 10px; Right &Sidebar - F8 + F10 @@ -3494,7 +3494,7 @@ border-radius: 10px; Daily Sidebar - F9 + F8 @@ -3508,7 +3508,7 @@ border-radius: 10px; Daily Calendar - F10 + F9