summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/globe.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp
index c39723dc3..d1c23ed33 100644
--- a/qt-ui/globe.cpp
+++ b/qt-ui/globe.cpp
@@ -149,13 +149,13 @@ void GlobeGPS::mouseClicked(qreal lon, qreal lat, GeoDataCoordinates::Unit unit)
if (lat_diff > resolve || lon_diff > resolve)
continue;
- if (clear) {
- mainWindow()->dive_list()->unselectDives();
- clear = false;
- }
selectedDiveIds.push_back(idx);
first = false;
}
+ if (clear) {
+ mainWindow()->dive_list()->unselectDives();
+ clear = false;
+ }
mainWindow()->dive_list()->selectDives(selectedDiveIds);
}