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 <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2013-12-02 17:19:04 -02:00 committed by Dirk Hohndel
parent 7481746d91
commit 599ffdc2a9

View file

@ -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);
}