mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
b601db30ad
commit
6576790ff6
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ void DivePlannerPointsModel::copyCylinders(dive *d)
|
||||||
// setup the cylinder widget accordingly
|
// setup the cylinder widget accordingly
|
||||||
void DivePlannerPointsModel::setupCylinders()
|
void DivePlannerPointsModel::setupCylinders()
|
||||||
{
|
{
|
||||||
if (!stagingDive)
|
if (!stagingDive || stagingDive == current_dive)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (current_dive) {
|
if (current_dive) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue