summaryrefslogtreecommitdiffstats
path: root/Documentation/images/DiveSiteEdit.jpg
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-05-04 14:23:46 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-05-05 08:53:19 -0700
commitce140f29251b013ccc334787d176f8112f9dd8c6 (patch)
tree8f0b670b68b9686b78561fdf58364f684d2cb9ee /Documentation/images/DiveSiteEdit.jpg
parent9442e17ba887836b6a87e8e7b8a6b73f08090191 (diff)
downloadsubsurface-ce140f29251b013ccc334787d176f8112f9dd8c6.tar.gz
Desktop: fix crash on dive site tab
An interesting crash: 1) On the dive site tab select a dive site such that only one trip is shown. 2) Unselect all dives. 3) Press CTRL-A while the dive list has focus. 4) This will select a trip. 5) In MainTab::updateDiveInfo() this will switch to the previous tab active when in trip mode. 6) This will reset the filter. 7) This will reset the currentTrip field which we just set. 8) Since we just set the currentTrip field, we don't expect it to change and reference a null pointer. To fix, don't switch tabs when on the dive site tab. This also improves user experience as there seems to be no reason to switch away from the dive site tab. Currently the index of the dive site tab is hard-coded - this should be changed! Fixes #2077 Reported-by: Doug Junkins <junkins@foghead.com> Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'Documentation/images/DiveSiteEdit.jpg')
0 files changed, 0 insertions, 0 deletions