aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/globe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/globe.cpp')
-rw-r--r--qt-ui/globe.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp
index 496afb4ac..4c6743770 100644
--- a/qt-ui/globe.cpp
+++ b/qt-ui/globe.cpp
@@ -150,10 +150,8 @@ void GlobeGPS::mouseClicked(qreal lon, qreal lat, GeoDataCoordinates::Unit unit)
}
if (selectedDiveIds.empty())
return;
- if (clear) {
+ if (clear)
MainWindow::instance()->dive_list()->unselectDives();
- clear = false;
- }
MainWindow::instance()->dive_list()->selectDives(selectedDiveIds);
}