mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Undo: make "delete dive computer" undoable
Simply reuse the code for "move dive computer" by creating a DiveComputerBase base class. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
eba6e76b96
commit
0bc96905bf
7 changed files with 60 additions and 25 deletions
|
|
@ -436,7 +436,7 @@ extern timestamp_t dive_endtime(const struct dive *dive);
|
|||
|
||||
extern struct dive *make_first_dc(const struct dive *d, int dc_number);
|
||||
extern unsigned int count_divecomputers(void);
|
||||
extern void delete_current_divecomputer(void);
|
||||
extern struct dive *clone_delete_divecomputer(const struct dive *d, int dc_number);
|
||||
void split_divecomputer(const struct dive *src, int num, struct dive **out1, struct dive **out2);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue