From 9cee9a6e0302f1bb5f8dcb15b6d23dfc69800cc3 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Mon, 11 Jun 2018 13:40:23 +1000 Subject: [PATCH] Oximeter Purge should only delete oximetry sessions --- sleepyhead/mainwindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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();