From dbaafed73d625e70efa526dcfb1e1f9c801483e1 Mon Sep 17 00:00:00 2001 From: kappa44 <6469032-kappa44@users.noreply.gitlab.com> Date: Fri, 21 May 2021 10:42:38 +1000 Subject: [PATCH] Journal should always ignore 'do not import sessions' date --- oscar/SleepLib/journal.cpp | 2 +- oscar/daily.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/oscar/SleepLib/journal.cpp b/oscar/SleepLib/journal.cpp index 6e515497..e7c0d429 100644 --- a/oscar/SleepLib/journal.cpp +++ b/oscar/SleepLib/journal.cpp @@ -76,7 +76,7 @@ JournalEntry::JournalEntry(QDate date) session->set_last(et); // Let it live in memory...but not on disk unless data is changed... - jmach->AddSession(session); + jmach->AddSession(session, true); // and where does day get set??? does day actually need to be set?? day = p_profile->GetDay(date, MT_JOURNAL); diff --git a/oscar/daily.cpp b/oscar/daily.cpp index 88aeda70..9f14b31c 100644 --- a/oscar/daily.cpp +++ b/oscar/daily.cpp @@ -2126,7 +2126,7 @@ Session * Daily::CreateJournalSession(QDate date) sess->SetSessionID(st / 1000L); sess->set_first(st); sess->set_last(et); - m->AddSession(sess); + m->AddSession(sess, true); return sess; } Session * Daily::GetJournalSession(QDate date) // Get the first journal session