summaryrefslogtreecommitdiffstats
path: root/qt-ui/globe.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-02 20:36:41 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-02 20:36:41 +0900
commitde8395e09e0e6c6ada06dbd3d5e6a053fd821a71 (patch)
treee56f5f3101fbbc274eafad70060f71d3e499ad54 /qt-ui/globe.cpp
parenta98a7a135199bbe3dc25290da47c1915861b2300 (diff)
parente88a9aa83eacaa6a003ca440947fa20c9b598834 (diff)
downloadsubsurface-de8395e09e0e6c6ada06dbd3d5e6a053fd821a71.tar.gz
Merge branch 'selection'
Diffstat (limited to 'qt-ui/globe.cpp')
-rw-r--r--qt-ui/globe.cpp2
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;