Change API signature to act on dive_site, not uuid

This way in the future we can pass in a pointer to a dive site that isn't
linked in our dive site list yet (i.e., while we are editing).

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-07-16 12:41:04 -07:00
parent f98ace681a
commit 076f86202a
7 changed files with 8 additions and 10 deletions

View file

@ -533,7 +533,7 @@ void LocationFilterDelegate::paint(QPainter *painter, const QStyleOptionViewItem
#ifndef NO_MARBLE
if ((option.state & QStyle::State_HasFocus) && dive_site_has_gps_location(ds)) {
qDebug() << "center on" << ds->name;
MainWindow::instance()->globe()->centerOnDiveSite(ds->uuid);
MainWindow::instance()->globe()->centerOnDiveSite(ds);
}
#endif