diff options
Diffstat (limited to 'profile-widget')
-rw-r--r-- | profile-widget/profilewidget2.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 55a00a8e8..e296a8b9b 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -1078,7 +1078,11 @@ void ProfileWidget2::setEmptyState() hideAll(allPercentages); hideAll(handles); #endif - hideAll(eventItems); + // the events will have connected slots which can fire after + // the dive and its data have been deleted - so explictly delete + // the DiveEventItems + qDeleteAll(eventItems); + eventItems.clear(); hideAll(gases); } |