diff options
author | 2019-03-14 23:28:45 +0100 | |
---|---|---|
committer | 2019-04-12 18:19:07 +0300 | |
commit | b5d4d88fe596fa91a3f3491fe8acc220a0df7b72 (patch) | |
tree | e198af14ac0c2a72609aa66f0c644821c650650e /map-widget/qmlmapwidgethelper.cpp | |
parent | 0b851d723e1b57fd2065c268977e023cfb364066 (diff) | |
download | subsurface-b5d4d88fe596fa91a3f3491fe8acc220a0df7b72.tar.gz |
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'map-widget/qmlmapwidgethelper.cpp')
-rw-r--r-- | map-widget/qmlmapwidgethelper.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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(); } |