diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-03 21:37:52 +0200 |
---|---|---|
committer | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-07 00:13:35 +0200 |
commit | 4d5f25ccf44eb3a55def84aac43aed344afe791f (patch) | |
tree | 32c005a8731fe2f24dcaa041e530d69d25f3f565 /qt-models | |
parent | e2f77f9238134c7d45944cb5cf62c2c15f202870 (diff) | |
download | subsurface-4d5f25ccf44eb3a55def84aac43aed344afe791f.tar.gz |
cleanup: remove conditional compilation in cylindermodel.cpp
Parts of the code were not compiled on mobile, because they used
the undo-command infrastructure. However, since mobile now also
compiles that, we might as well remove the conditional compilation.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/cylindermodel.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/qt-models/cylindermodel.cpp b/qt-models/cylindermodel.cpp index e519d347b..04abe2fdb 100644 --- a/qt-models/cylindermodel.cpp +++ b/qt-models/cylindermodel.cpp @@ -471,11 +471,9 @@ bool CylindersModel::setData(const QModelIndex &index, const QVariant &value, in free_cylinder(copy); dataChanged(index, index); } else { -#ifndef SUBSURFACE_MOBILE // On the EquipmentTab - place an editCylinder command. int count = Command::editCylinder(index.row(), cyl, type, false); emit divesEdited(count); -#endif } return true; } @@ -709,7 +707,6 @@ void CylindersModel::clearTempCyl() void CylindersModel::commitTempCyl(int row) { -#ifndef SUBSURFACE_MOBILE if (tempRow < 0) return; if (row != tempRow) @@ -728,7 +725,6 @@ void CylindersModel::commitTempCyl(int row) } free_cylinder(tempCyl); tempRow = -1; -#endif } CylindersModelFiltered::CylindersModelFiltered(QObject *parent) : QSortFilterProxyModel(parent), |