summaryrefslogtreecommitdiffstats
path: root/qt-ui/modeldelegates.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-16 12:41:04 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-16 12:41:04 -0700
commit076f86202aab51529d99f73427a1a834a0ef5d34 (patch)
tree9c6a0041124450ea56d67b8e3c75b008b28d1eee /qt-ui/modeldelegates.cpp
parentf98ace681acbc3aba64779d639fef4686c6f3474 (diff)
downloadsubsurface-076f86202aab51529d99f73427a1a834a0ef5d34.tar.gz
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>
Diffstat (limited to 'qt-ui/modeldelegates.cpp')
-rw-r--r--qt-ui/modeldelegates.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp
index a3978ce54..7089289aa 100644
--- a/qt-ui/modeldelegates.cpp
+++ b/qt-ui/modeldelegates.cpp
@@ -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