subsurface/profile-widget
Dirk Hohndel f7e222718a 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 <bstoeger@mail.tuwien.ac.at>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2021-08-16 18:37:59 -07:00
..
animationfunctions.cpp Profile: add speed parameter to Animation::* functions 2019-07-12 09:59:28 +02:00
animationfunctions.h Profile: add speed parameter to Animation::* functions 2019-07-12 09:59:28 +02:00
CMakeLists.txt profile: move DiveHandler to profile-widget folder 2020-12-12 15:52:40 -08:00
divecartesianaxis.cpp profile: use printMode flag directly in DiveCartesianAxis 2021-06-04 08:45:32 -07:00
divecartesianaxis.h profile: remove DiveCartesianAxis::maxChanged signal 2021-06-04 08:45:32 -07:00
diveeventitem.cpp cleanup: replace membuffer by qasprintf_loc() 2021-07-23 11:22:43 -07:00
diveeventitem.h profile: scale dive event items according to font print scale 2021-07-04 11:51:17 -07:00
divehandler.cpp profile use unique_ptr to manage dive handler objects 2021-04-02 13:53:23 -07:00
divehandler.h profile: pass dive to DiveHandler 2021-01-10 15:57:39 -08:00
divelineitem.cpp Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divelineitem.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divepixmapitem.cpp profile: move picture removal from DivePictureItem to ProfileWidget2 2020-12-19 20:19:51 +01:00
divepixmapitem.h profile: move picture removal from DivePictureItem to ProfileWidget2 2020-12-19 20:19:51 +01:00
diveprofileitem.cpp cleanup: remove DiveCalculatedCeiling::profileWidget 2021-07-30 08:02:05 -07:00
diveprofileitem.h cleanup: remove DiveCalculatedCeiling::profileWidget 2021-07-30 08:02:05 -07:00
diverectitem.cpp Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
diverectitem.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divetextitem.cpp Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
divetextitem.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divetooltipitem.cpp cleanup: replace membuffer by membufferpp in C-code 2021-07-23 11:22:43 -07:00
divetooltipitem.h cleanup: remove function static variables 2021-07-20 09:27:35 -07:00
profilewidget2.cpp desktop: avoid crash when changing dive logs 2021-08-16 18:37:59 -07:00
profilewidget2.h cleanup: unify the ProfileWidget2::shouldCalculateMax* variables 2021-07-30 08:02:05 -07:00
qmlprofile.cpp profile: remove force parameter from ProfileWidget2::plotDive() 2021-04-10 14:15:35 -07:00
qmlprofile.h mobile/profile: listen to dive changes and redraw profile 2020-12-21 13:12:37 -08:00
ruleritem.cpp profile: pass dive to RulerItem 2021-01-10 15:57:39 -08:00
ruleritem.h profile: pass dive to RulerItem 2021-01-10 15:57:39 -08:00
tankitem.cpp cleanup: constify TankItem::setData() 2021-01-20 10:01:50 -08:00
tankitem.h cleanup: constify TankItem::setData() 2021-01-20 10:01:50 -08:00