mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
297befc6f8
commit
d057af43b4
5 changed files with 9 additions and 9 deletions
|
@ -882,8 +882,8 @@ QString editProfileTypeToString(EditProfileType type, int count)
|
|||
}
|
||||
}
|
||||
|
||||
EditProfile::EditProfile(const dive *source, EditProfileType type, int count) : d(current_dive),
|
||||
dcNr(dc_number),
|
||||
EditProfile::EditProfile(const dive *source, int dcNr, EditProfileType type, int count) : d(current_dive),
|
||||
dcNr(dcNr),
|
||||
maxdepth({0}),
|
||||
meandepth({0}),
|
||||
dcmaxdepth({0}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue