diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-09-06 22:01:59 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-09-07 08:28:29 -0700 |
commit | e3cd0891d312c448db6d6a19464efd3c521cd153 (patch) | |
tree | 0d6700f8ea71ecbcde10763dab23ca785532e49f /CHANGELOG.md | |
parent | 4479ccf8f32a0241e51dd5dcbcec28d2d26fb7af (diff) | |
download | subsurface-e3cd0891d312c448db6d6a19464efd3c521cd153.tar.gz |
Dive site: close dive site edit widget when dive site is deleted
The application could be crashed by
1) Create dive site
2) Edit dive site
3) Undo until dive site is removed
4) Continue editing now non-existing dive site
Therefore, hook into the dive-site-deleted signal and if the
currently edited dive site is deleted, close the widget.
When closing the widget, make sure that the potentially
dangling pointer is reset to zero so that there is no
other potential use-after-free bug.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4add1764e..def8ec6ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +- Desktop: close dive site widget if dive site is removed by undo - Desktop: Don't destroy format of planner notes when editing dive notes [#2265] - Map: avoid full map reload when clicking on flag - Map: highlight all selected dive sites when clicking on flag |