mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
undo: pass divecomputer number to EditSensors 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
996f85771a
commit
297befc6f8
5 changed files with 7 additions and 7 deletions
|
@ -1351,8 +1351,8 @@ void EditCylinder::undo()
|
|||
redo();
|
||||
}
|
||||
|
||||
EditSensors::EditSensors(int toCylinderIn, int fromCylinderIn)
|
||||
: d(current_dive), dc(get_dive_dc(d, dc_number)), toCylinder(toCylinderIn), fromCylinder(fromCylinderIn)
|
||||
EditSensors::EditSensors(int toCylinderIn, int fromCylinderIn, int dcNr)
|
||||
: d(current_dive), dc(get_dive_dc(d, dcNr)), toCylinder(toCylinderIn), fromCylinder(fromCylinderIn)
|
||||
{
|
||||
if (!d || !dc)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue