summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-03 21:24:52 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-03 21:40:56 -0800
commitd24d2288f30e8666667c5437802d22533a94e1ec (patch)
treefdfaa1befe6122a756da19af329b66c7e1778bc1 /qt-ui
parent99b8e85d739387c0c8342535b28e010cdac74a5f (diff)
downloadsubsurface-d24d2288f30e8666667c5437802d22533a94e1ec.tar.gz
Remove pointless assignments
tissue_tolerance wasn't used after it was assigned. type was overwritten after it was assigned. serial was overwritten after the last /= 100. event is assigned in the for loop. clear isn't used after the assignment Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/globe.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp
index 496afb4ac..4c6743770 100644
--- a/qt-ui/globe.cpp
+++ b/qt-ui/globe.cpp
@@ -150,10 +150,8 @@ void GlobeGPS::mouseClicked(qreal lon, qreal lat, GeoDataCoordinates::Unit unit)
}
if (selectedDiveIds.empty())
return;
- if (clear) {
+ if (clear)
MainWindow::instance()->dive_list()->unselectDives();
- clear = false;
- }
MainWindow::instance()->dive_list()->selectDives(selectedDiveIds);
}