summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-29 17:45:06 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-29 17:46:26 -0700
commit3d90bd34b2dba880c555525ae4e0444f800d26a3 (patch)
treef5b48263a694de4d1a35b1d4165d5628fed2328a
parent63c21d55de6c604f1768a5c0945f9b3dae546a8c (diff)
downloadsubsurface-3d90bd34b2dba880c555525ae4e0444f800d26a3.tar.gz
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>
-rw-r--r--qt-ui/models.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}