From 3d90bd34b2dba880c555525ae4e0444f800d26a3 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 29 May 2014 17:45:06 -0700 Subject: [PATCH] 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 --- qt-ui/models.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 4d9e19190..2228c8e5e 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -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; }