Planner: only update the plan after the cylinder data has been updated

This way we avoid trying to create a dive from the plan while the plan
references the cylinder that has just been changed.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-05-29 17:45:06 -07:00
parent 63c21d55de
commit 3d90bd34b2

View file

@ -267,9 +267,9 @@ bool CylindersModel::setData(const QModelIndex &index, const QVariant &value, in
changed = true;
}
}
dataChanged(index, index);
if (addDiveMode)
DivePlannerPointsModel::instance()->tanksUpdated();
dataChanged(index, index);
return true;
}