diff --git a/sleepyhead/mainwindow.cpp b/sleepyhead/mainwindow.cpp index 336dd1a5..ce6010b0 100644 --- a/sleepyhead/mainwindow.cpp +++ b/sleepyhead/mainwindow.cpp @@ -2364,8 +2364,7 @@ void MainWindow::on_actionPurgeCurrentDaysOximetry_triggered() return; } - QList sessionlist; - sessionlist.append(day->sessions); + QList sessionlist=day->getSessions(MT_OXIMETER); for (auto & sess : sessionlist) { sess->Destroy();