summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-models/diveplannermodel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp
index 707cdcfcc..127ea8649 100644
--- a/qt-models/diveplannermodel.cpp
+++ b/qt-models/diveplannermodel.cpp
@@ -337,9 +337,9 @@ bool DivePlannerPointsModel::setData(const QModelIndex &index, const QVariant &v
case GAS:
if (value.toInt() >= 0 && value.toInt() < MAX_CYLINDERS)
p.cylinderid = value.toInt();
- /* Did we change the start (dp 0) cylinder to another cylinderid than 0? */
- if (value.toInt() != 0 && index.row() == 0)
- CylindersModel::instance()->moveAtFirst(value.toInt());
+ /* Did we change the start (dp 0) cylinder to another cylinderid than 0? */
+ if (value.toInt() != 0 && index.row() == 0)
+ CylindersModel::instance()->moveAtFirst(value.toInt());
CylindersModel::instance()->updateTrashIcon();
break;
}