diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-28 21:30:21 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-28 21:30:21 -0700 |
commit | 6576790ff62f663b7092411ef23babfb9b52e080 (patch) | |
tree | 39f0b1b4395918161dbc66f171ad178298edfe0e /qt-ui/diveplanner.cpp | |
parent | b601db30ada0d4956e2110b1cfec218b2ce2aded (diff) | |
download | subsurface-6576790ff62f663b7092411ef23babfb9b52e080.tar.gz |
Add dive: only copy cylinders when necessary
If the stagingDive is just an alias for the current_dive (as it is in dive
ADD mode), there's no need to copy the cylinders; they are already there.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r-- | qt-ui/diveplanner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 215898389..c3ba26932 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -116,7 +116,7 @@ void DivePlannerPointsModel::copyCylinders(dive *d) // setup the cylinder widget accordingly void DivePlannerPointsModel::setupCylinders() { - if (!stagingDive) + if (!stagingDive || stagingDive == current_dive) return; if (current_dive) { |