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>
This commit is contained in:
Berthold Stoeger 2019-03-14 23:28:45 +01:00 committed by Dirk Hohndel
parent 0b851d723e
commit b5d4d88fe5
10 changed files with 30 additions and 113 deletions

View file

@ -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();
}

View file

@ -53,7 +53,7 @@ signals:
void modelChanged();
void editModeChanged();
void selectedDivesChanged(QList<int> list);
void coordinatesChanged(const location_t &);
void coordinatesChanged(struct dive_site *ds, const location_t &);
void pluginObjectChanged();
};