mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Do cylinder renumber for dive data points only when in planner mode
Amendment to 73d2ab8099
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
59bf217157
commit
93e2bda070
1 changed files with 4 additions and 2 deletions
|
@ -577,7 +577,8 @@ void CylindersModel::remove(const QModelIndex &index)
|
|||
changed = true;
|
||||
endRemoveRows();
|
||||
cylinder_renumber(&displayed_dive, mapping);
|
||||
DivePlannerPointsModel::instance()->cylinderRenumber(mapping);
|
||||
if (in_planner())
|
||||
DivePlannerPointsModel::instance()->cylinderRenumber(mapping);
|
||||
dataChanged(index, index);
|
||||
}
|
||||
|
||||
|
@ -599,7 +600,8 @@ void CylindersModel::moveAtFirst(int cylid)
|
|||
changed = true;
|
||||
endMoveRows();
|
||||
cylinder_renumber(&displayed_dive, mapping);
|
||||
DivePlannerPointsModel::instance()->cylinderRenumber(mapping);
|
||||
if (in_planner())
|
||||
DivePlannerPointsModel::instance()->cylinderRenumber(mapping);
|
||||
}
|
||||
|
||||
void CylindersModel::updateDecoDepths(pressure_t olddecopo2)
|
||||
|
|
Loading…
Reference in a new issue