undo/mobile: keep track of dive sites

When editing the dive site of a dive, the dive-table of the
corresponding dive site was not properly updated by the undo
commands. Try to get this right.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-04-04 16:35:24 +02:00 committed by Dirk Hohndel
parent 039ed38067
commit 69d437bc86
3 changed files with 14 additions and 4 deletions

View file

@ -386,6 +386,7 @@ public:
private:
dive *oldDive; // Dive that is going to be overwritten
OwningDivePtr newDive; // New data
dive_site *newDiveSite;
int changedFields;
dive_site *siteToRemove;