Preserve events when editing dive in planner

The planner does not know about events except gas
changes. But if the dive comes from the log, we
should preserve the dive computer events. At least
those that happend before we started to delete
waypoints to let the planner take over.

Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
Robert C. Helling 2020-04-12 13:39:01 +02:00 committed by bstoeger
parent 1690ba7c0c
commit b50d5b63ad
4 changed files with 48 additions and 8 deletions

View file

@ -136,6 +136,7 @@ private:
QDateTime startTime;
int instanceCounter = 0;
struct deco_state ds_after_previous_dives;
duration_t preserved_until;
};
#endif