From 599ffdc2a9811594453fcc9d1f1f949ec2cbefbb Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 2 Dec 2013 17:19:04 -0200 Subject: Move code outside of for-loop. This piece of code didn't need to be on the for-loop, so let's remove it out of it. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/globe.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'qt-ui') 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); } -- cgit v1.2.3-70-g09d2