Globe: assume that we are looking at the current_dive

As in commit 3870bdafee53 ("Globe: we always center on the current dive")
passing in a specific dive here makes no sense - it's always about the
current dive.

Fixes #513

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-05-07 14:01:05 -07:00
parent 2bc76beb65
commit fb82da58a2
3 changed files with 5 additions and 5 deletions

View file

@ -224,7 +224,7 @@ void GlobeGPS::centerOnCurrentDive()
if ((!dive_has_gps_location(dive) || MainWindow::instance()->information()->isEditing())
&& amount_selected == 1) {
prepareForGetDiveCoordinates(dive);
prepareForGetDiveCoordinates();
return;
}
if (!dive_has_gps_location(dive)) {
@ -270,7 +270,7 @@ void GlobeGPS::zoomOutForNoGPS()
}
}
void GlobeGPS::prepareForGetDiveCoordinates(struct dive *dive)
void GlobeGPS::prepareForGetDiveCoordinates()
{
if (!messageWidget->isVisible()) {
messageWidget->setMessageType(KMessageWidget::Warning);
@ -278,7 +278,7 @@ void GlobeGPS::prepareForGetDiveCoordinates(struct dive *dive)
messageWidget->setWordWrap(true);
messageWidget->animatedShow();
editingDiveLocation = true;
if (!dive_has_gps_location(dive))
if (!dive_has_gps_location(current_dive))
zoomOutForNoGPS();
}
}