diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-11-14 19:36:41 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-14 19:36:41 +0900 |
commit | ed41d5a74490b9af03ece57015d6867bbf00df14 (patch) | |
tree | ccd546fc9ae72b936e9dd60485c3b1155d6a217c /qt-ui/maintab.h | |
parent | f6eb26dbae7be8a5a8482127ee331ee863f13fc3 (diff) | |
download | subsurface-ed41d5a74490b9af03ece57015d6867bbf00df14.tar.gz |
Sort the dive table after adding a dive
This commit scares me. Any pointers to dives or indices into the dive
table... anything like that is invalid after we resort the table. Well,
not technically "invalid" (as in bad pointers), but after re-sorting the
table these will possibly not be pointing at what we expected.
This starts with the selection being "wrong" after we add a dive that
isn't the last dive (once we click OK the chronologically last dive will
be selected).
But of course without doing this, our #1 assumption about the dive_table
is broken. The dive_table is supposed to be in chronological order.
Best advice of course would be "don't enter dives out of order" - but of
course that's not realistic.
Fixes #234
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.h')
0 files changed, 0 insertions, 0 deletions