mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
b5d4d88fe5
commit
7c63956ee4
6 changed files with 57 additions and 9 deletions
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
#include "core/units.h"
|
||||
#include "core/divesite.h"
|
||||
#include "core/taxonomy.h"
|
||||
#include "ui_locationinformation.h"
|
||||
#include "qt-models/divelocationmodel.h"
|
||||
#include <stdint.h>
|
||||
|
|
@ -41,7 +40,6 @@ private:
|
|||
Ui::LocationInformation ui;
|
||||
GPSLocationInformationModel filter_model;
|
||||
dive_site *diveSite;
|
||||
taxonomy_data taxonomy;
|
||||
};
|
||||
|
||||
class DiveLocationFilterProxyModel : public QSortFilterProxyModel {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue