mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 03:00:43 +00:00
Show revision in mainwindow titlebar, remove accidental conditional PRS1 F3 check
This commit is contained in:
parent
c322e1f21c
commit
db594af8e6
@ -1114,7 +1114,8 @@ bool PRS1Import::ParseF0Events()
|
||||
|
||||
int size = event->m_data.size();
|
||||
|
||||
if (event->fileVersion == 3) size -= 2;
|
||||
bool FV3 = (event->fileVersion == 3);
|
||||
if (FV3) size -= 2;
|
||||
unsigned char * buffer = (unsigned char *)event->m_data.data();
|
||||
|
||||
CPAPMode mode = (CPAPMode) session->settings[CPAP_Mode].toInt();
|
||||
@ -1150,7 +1151,6 @@ bool PRS1Import::ParseF0Events()
|
||||
|
||||
case 0x00: // Unknown 00
|
||||
|
||||
if (event->family == 3)
|
||||
if (!Code[0]) {
|
||||
if (!(Code[0] = session->AddEventList(PRS1_00, EVL_Event))) { return false; }
|
||||
}
|
||||
@ -1208,7 +1208,7 @@ bool PRS1Import::ParseF0Events()
|
||||
break;
|
||||
|
||||
case 0x03: // BIPAP Pressure
|
||||
if (event->fileVersion == 3) {
|
||||
if (FV3) {
|
||||
if (!PRESSURE) {
|
||||
PRESSURE = session->AddEventList(CPAP_Pressure, EVL_Event, 0.1F);
|
||||
|
||||
|
@ -143,16 +143,12 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
connect(logger, SIGNAL(outputLog(QString)), this, SLOT(logMessage(QString)));
|
||||
}
|
||||
|
||||
QString version = VersionString;
|
||||
QString version = VersionString + "-" + QString(GIT_REVISION) + "-" + getGraphicsEngine();
|
||||
|
||||
#ifdef TEST_BUILD
|
||||
version += QString(STR_TestBuild);
|
||||
#else
|
||||
#ifndef TEST_BUILD
|
||||
ui->warningLabel->hide();
|
||||
#endif
|
||||
|
||||
version += " "+getGraphicsEngine();
|
||||
|
||||
if (QString(GIT_BRANCH) != "master") { version += " [" + QString(GIT_BRANCH)+" branch]"; }
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user