summaryrefslogtreecommitdiffstats
path: root/commands/command_edit.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-04 16:35:24 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-04 11:49:23 -0700
commit69d437bc8675267eb71f6658b05991b4afdfb6fb (patch)
treec6fe0aadca8532205c661af56969fea9557d33dc /commands/command_edit.h
parent039ed38067a9d34c8625b2b8b260822c8f65d63e (diff)
downloadsubsurface-69d437bc8675267eb71f6658b05991b4afdfb6fb.tar.gz
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>
Diffstat (limited to 'commands/command_edit.h')
-rw-r--r--commands/command_edit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/command_edit.h b/commands/command_edit.h
index e10934704..e99ce2407 100644
--- a/commands/command_edit.h
+++ b/commands/command_edit.h
@@ -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;