diff options
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; |