diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-31 21:05:33 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-02 20:31:04 +0900 |
commit | e88a9aa83eacaa6a003ca440947fa20c9b598834 (patch) | |
tree | 4ac2b3afe0f9705c41fdc43f9aaf8987029841fc /qt-ui/globe.cpp | |
parent | 9a65798daf3dc0e7991305ce759d42d40d2dc98c (diff) | |
download | subsurface-e88a9aa83eacaa6a003ca440947fa20c9b598834.tar.gz |
Once again try to fix the selection
Things got broken. Again. We no longer kept track of the selected dives in
our structures which broke statistics.
This attempts to fix that, but appears to still have a bug when selecting
trips. Sometimes this results in 0 dives being selected according to our
data structures, while Qt happily shows all dives of the trip as seected.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/globe.cpp')
-rw-r--r-- | qt-ui/globe.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp index bf2369862..67a4fcd73 100644 --- a/qt-ui/globe.cpp +++ b/qt-ui/globe.cpp @@ -94,6 +94,8 @@ void GlobeGPS::centerOn(dive* dive) if (messageWidget->isVisible() && (!dive || dive_has_gps_location(dive))) { messageWidget->animatedHide(); } + if (!dive) + return; editingDiveCoords = 0; |