Oximeter Purge should only delete oximetry sessions

This commit is contained in:
Mark Watkins 2018-06-11 13:40:23 +10:00
parent f42058f394
commit 9cee9a6e03

View File

@ -2364,8 +2364,7 @@ void MainWindow::on_actionPurgeCurrentDaysOximetry_triggered()
return;
}
QList<Session *> sessionlist;
sessionlist.append(day->sessions);
QList<Session *> sessionlist=day->getSessions(MT_OXIMETER);
for (auto & sess : sessionlist) {
sess->Destroy();