undo: pass divecomputer number to EditProfile command

Don't access the global variable dc_number, which might
not make sense on mobile.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2022-05-21 21:30:57 +02:00 committed by bstoeger
parent 297befc6f8
commit d057af43b4
5 changed files with 9 additions and 9 deletions

View file

@ -102,7 +102,7 @@ enum class EditProfileType {
MOVE,
};
void replanDive(dive *d); // dive computer(s) and cylinder(s) of first argument will be consumed!
void editProfile(const dive *d, EditProfileType type, int count);
void editProfile(const dive *d, int dcNr, EditProfileType type, int count);
int addWeight(bool currentDiveOnly);
int removeWeight(int index, bool currentDiveOnly);
int editWeight(int index, weightsystem_t ws, bool currentDiveOnly);