diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-08-21 17:58:15 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-21 17:58:15 -0700 |
commit | 4a04fc2a1bf9fc424645cda9257e24b43bbb1b71 (patch) | |
tree | 0a2c248fc25883d50b017fc9987ff8a2235d2f25 /qt-gui.cpp | |
parent | b8823acef986579491bdc90b3161772c1a697c16 (diff) | |
download | subsurface-4a04fc2a1bf9fc424645cda9257e24b43bbb1b71.tar.gz |
Fix selection logic when manually adding a dive
This was an interesting bug. When adding a dive that would end up in the
middle of the dive list, the newest dive in the dive list would end up
marked in the dive structure as selected - even though it wasn't
visualized as selected by Qt. Bad things happen if the user then made
changes to that dive without selecting something else first, for example
by either editing the dive or doing things to it like removing it from or
adding it to a trip. The same operation would also be applied to the
newest dive in the dive list.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-gui.cpp')
0 files changed, 0 insertions, 0 deletions