mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 00:33:24 +00:00
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:
parent
7481746d91
commit
599ffdc2a9
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue