From 7c63956ee4798a835794eee8189b73e3df07594d Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 15 Mar 2019 14:32:55 +0100 Subject: Undo: implement undo of geo lookup Simply copy code of the other edit dive site functions. Here though introduce a destructor in the undo command to free the taxonomy data. Remove the taxonomy member of the LocationInformationWidget class, because it is not needed anymore. Signed-off-by: Berthold Stoeger --- desktop-widgets/command.h | 1 + 1 file changed, 1 insertion(+) (limited to 'desktop-widgets/command.h') diff --git a/desktop-widgets/command.h b/desktop-widgets/command.h index b41462ac9..d1a8326ea 100644 --- a/desktop-widgets/command.h +++ b/desktop-widgets/command.h @@ -46,6 +46,7 @@ void editDiveSiteDescription(dive_site *ds, const QString &value); void editDiveSiteNotes(dive_site *ds, const QString &value); void editDiveSiteCountry(dive_site *ds, const QString &value); void editDiveSiteLocation(dive_site *ds, location_t value); +void editDiveSiteTaxonomy(dive_site *ds, taxonomy_data &value); // value is consumed (i.e. will be erased after call)! void addDiveSite(const QString &name); } // namespace Command -- cgit v1.2.3-70-g09d2