diff --git a/daily.cpp b/daily.cpp index 6094db1e..1bf2e061 100644 --- a/daily.cpp +++ b/daily.cpp @@ -167,20 +167,21 @@ Daily::Daily(QWidget *parent,gGraphView * shared, MainWindow *mw) TE->AddLayer(AddCPAP(new gStatsLine(CPAP_Te)),LayerBottom,0,20,1); TI->AddLayer(AddCPAP(new gStatsLine(CPAP_Ti)),LayerBottom,0,20,1); */ + bool square=PROFILE["SquareWavePlots"].toBool(); PRD->AddLayer(AddCPAP(new gLineChart(CPAP_Pressure,QColor("dark green"),square))); PRD->AddLayer(AddCPAP(new gLineChart(CPAP_EPAP,Qt::blue,square))); PRD->AddLayer(AddCPAP(new gLineChart(CPAP_IPAP,Qt::red,square))); LEAK->AddLayer(AddCPAP(new gLineChart(CPAP_Leak,Qt::darkYellow,square))); - SNORE->AddLayer(AddCPAP(new gLineChart(CPAP_Snore,Qt::darkGray,square))); + SNORE->AddLayer(AddCPAP(new gLineChart(CPAP_Snore,Qt::darkGray,true))); PTB->AddLayer(AddCPAP(new gLineChart(CPAP_PTB,Qt::gray,square))); MP->AddLayer(AddCPAP(new gLineChart(CPAP_MaskPressure,Qt::blue,false))); RR->AddLayer(AddCPAP(new gLineChart(CPAP_RespRate,Qt::darkMagenta,square))); MV->AddLayer(AddCPAP(new gLineChart(CPAP_MinuteVent,Qt::darkCyan,square))); TV->AddLayer(AddCPAP(new gLineChart(CPAP_TidalVolume,Qt::magenta,square))); - FLG->AddLayer(AddCPAP(new gLineChart(CPAP_FLG,Qt::darkBlue,square))); + FLG->AddLayer(AddCPAP(new gLineChart(CPAP_FLG,Qt::darkBlue,true))); //RE->AddLayer(AddCPAP(new gLineChart(CPAP_RespiratoryEvent,Qt::magenta,true))); IE->AddLayer(AddCPAP(new gLineChart(CPAP_IE,Qt::darkRed,square))); TE->AddLayer(AddCPAP(new gLineChart(CPAP_Te,Qt::darkGreen,square))); diff --git a/preferencesdialog.cpp b/preferencesdialog.cpp index 31fc1228..339d9420 100644 --- a/preferencesdialog.cpp +++ b/preferencesdialog.cpp @@ -281,11 +281,13 @@ void PreferencesDialog::Save() // In Mac OS the full path of aplication binary is: // /myApp.app/Contents/MacOS/myApp args << (QApplication::instance()->applicationDirPath() + "/../../../SleepyHead.app"); - proc.startDetached("open", args); + qDebug() << "Would restart on mac if this was correct" << args; + qDebug() << "repeating applicationDirPath for clarity: " << QApplication::instance()->applicationDirPath(); + //proc.startDetached("open", args); #else proc.startDetached(QApplication::instance()->applicationFilePath(),args); + QApplication::instance()->exit(); #endif - QApplication::instance()->exit(); } } }