From f7e222718a6677912094c1994c1681bed5171b28 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 15 Aug 2021 10:05:59 -0700 Subject: desktop: avoid crash when changing dive logs If the last displayed dive had events, those DiveEventItems had slots connected that would update those icons if things changed. When closing the dive log and switching to a different one, those slots were still called and would then access freed memory (the event structure from that old dive that is long gone by then). This code explicitly deletes those DiveEventItems which also removes those signal slot connections. Fixes #3305 Sugested-by: Berthold Stoeger Signed-off-by: Dirk Hohndel --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 939dc2ea2..e6b10ea08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +- avoid potential crash when switching divelogs - add GPS fix downloaded from a dive comuter to existing dive site - fix broken curser left/right shortcut for showing multiple dive computers - allow editing the profile for dives imported without samples (via CSV) -- cgit v1.2.3-70-g09d2