diff options
Diffstat (limited to 'map-widget/qmlmapwidgethelper.cpp')
-rw-r--r-- | map-widget/qmlmapwidgethelper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/map-widget/qmlmapwidgethelper.cpp b/map-widget/qmlmapwidgethelper.cpp index fe43c6fce..9dba8bfd3 100644 --- a/map-widget/qmlmapwidgethelper.cpp +++ b/map-widget/qmlmapwidgethelper.cpp @@ -135,7 +135,7 @@ void MapWidgetHelper::selectedLocationChanged(struct dive_site *ds_in) MapLocation *location = m_mapLocationModel->getMapLocation(ds_in); if (!location) return; - QGeoCoordinate locationCoord = location->coordinate(); + QGeoCoordinate locationCoord = location->coordinate; for_each_dive (idx, dive) { struct dive_site *ds = get_dive_site_for_dive(dive); @@ -149,7 +149,7 @@ void MapWidgetHelper::selectedLocationChanged(struct dive_site *ds_in) selectedDiveIds.append(idx); } #else // the mobile version doesn't support multi-dive selection - if (ds == location->divesite()) + if (ds == location->divesite) selectedDiveIds.append(dive->id); // use id here instead of index } int last; // get latest dive chronologically @@ -237,7 +237,7 @@ void MapWidgetHelper::updateCurrentDiveSiteCoordinatesFromMap(struct dive_site * { MapLocation *loc = m_mapLocationModel->getMapLocation(ds); if (loc) - loc->setCoordinate(coord); + loc->coordinate = coord; location_t location = mk_location(coord); emit coordinatesChanged(ds, location); } |