summaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2017-11-18 23:59:22 +0100
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-11-19 00:21:45 +0100
commit24fae95070d7ec82cebc854e744d9d9e23359808 (patch)
tree6adc3ef39dd1af4ccdaf8c3b8faf5c341c3b5262 /qt-models
parentebb8e1dc2771d4378cb6b7b16e6f49c6c2913a48 (diff)
downloadsubsurface-24fae95070d7ec82cebc854e744d9d9e23359808.tar.gz
Fix indentation
Fix an indentation issue in qt-models/diveplannermodel.cpp. An if was indented as if it were part of an outer if. Correct indentation confirmed by Stefan Fuchs <sfuchs@gmx.de>. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models')
-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;
}