diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-12-02 17:19:04 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-02 11:41:03 -0800 |
commit | 599ffdc2a9811594453fcc9d1f1f949ec2cbefbb (patch) | |
tree | 01a4ccdaef5067b524d219c758095bd05f27bedf /qt-ui/globe.cpp | |
parent | 7481746d91212dff97233245c77db78f54e25f24 (diff) | |
download | subsurface-599ffdc2a9811594453fcc9d1f1f949ec2cbefbb.tar.gz |
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>
Diffstat (limited to 'qt-ui/globe.cpp')
-rw-r--r-- | qt-ui/globe.cpp | 8 |
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); } |