From d24d2288f30e8666667c5437802d22533a94e1ec Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 3 Mar 2014 21:24:52 -0800 Subject: 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 --- qt-ui/globe.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'qt-ui/globe.cpp') 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); } -- cgit v1.2.3-70-g09d2