From b5d4d88fe596fa91a3f3491fe8acc220a0df7b72 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 14 Mar 2019 23:28:45 +0100 Subject: Dive site: remove edit mode from dive location widget Since no dive site field editing enters edit mode anymore, the whole edit mode state and code can be removed from the widget. Signed-off-by: Berthold Stoeger --- map-widget/qmlmapwidgethelper.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'map-widget/qmlmapwidgethelper.cpp') diff --git a/map-widget/qmlmapwidgethelper.cpp b/map-widget/qmlmapwidgethelper.cpp index b13c047e7..a0062db6b 100644 --- a/map-widget/qmlmapwidgethelper.cpp +++ b/map-widget/qmlmapwidgethelper.cpp @@ -257,7 +257,7 @@ void MapWidgetHelper::updateCurrentDiveSiteCoordinatesFromMap(struct dive_site * if (loc) loc->setCoordinate(coord); location_t location = mk_location(coord); - emit coordinatesChanged(location); + emit coordinatesChanged(ds, location); } void MapWidgetHelper::updateDiveSiteCoordinates(struct dive_site *ds, const location_t &location) @@ -294,8 +294,6 @@ void MapWidgetHelper::enterEditMode(struct dive_site *ds) coord = exists->coordinate(); } centerOnDiveSite(ds); - location_t location = mk_location(coord); - emit coordinatesChanged(location); emit editModeChanged(); } -- cgit v1.2.3-70-g09d2