From d29f82c52d604ddf65476bf382d4bbf1b5634525 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 3 May 2019 23:16:40 +0200 Subject: Map: make edit mode depend on dive-site-filtering Since the dive-site-filter is active either on the dive-site-edit page or the dive-site-list page, use that as the flag for dive-site-edit mode. Moreover, when the filter is reset, the MapWidgetHelper::reloadMapLocations() function is called, so we can use that place to enter/exit edit mode. This makes it easier to keep everything consistent. Signed-off-by: Berthold Stoeger --- map-widget/qmlmapwidgethelper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'map-widget/qmlmapwidgethelper.h') diff --git a/map-widget/qmlmapwidgethelper.h b/map-widget/qmlmapwidgethelper.h index d6dfa17a1..d6348c346 100644 --- a/map-widget/qmlmapwidgethelper.h +++ b/map-widget/qmlmapwidgethelper.h @@ -35,11 +35,11 @@ public: Q_INVOKABLE void updateCurrentDiveSiteCoordinatesFromMap(struct dive_site *ds, QGeoCoordinate coord); Q_INVOKABLE void selectVisibleLocations(); void updateDiveSiteCoordinates(struct dive_site *ds, const location_t &); - void enterEditMode(struct dive_site *ds); - void exitEditMode(); QString pluginObject(); private: + void enterEditMode(); + void exitEditMode(); QObject *m_map; MapLocationModel *m_mapLocationModel; qreal m_smallCircleRadius; -- cgit v1.2.3-70-g09d2