diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-11-16 15:37:16 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-16 15:38:29 -0800 |
commit | ddef5650f6ea9db2a8eed38a0147948cd58a7bbd (patch) | |
tree | fa1c00d159dcac219945d8fe74e4418df1c561ee /qt-models/divelistmodel.cpp | |
parent | e6c86700e49ffac409d2cd117619e34631bc922c (diff) | |
download | subsurface-ddef5650f6ea9db2a8eed38a0147948cd58a7bbd.tar.gz |
Make Subsurface-mobile compile again
This is a quick fix but it changes semantice. Previously weight() gave you
the total weight carried, now it just gives you the first weight item on
the list.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/divelistmodel.cpp')
-rw-r--r-- | qt-models/divelistmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-models/divelistmodel.cpp b/qt-models/divelistmodel.cpp index 1cec4bd20..7d49f5c01 100644 --- a/qt-models/divelistmodel.cpp +++ b/qt-models/divelistmodel.cpp @@ -46,11 +46,11 @@ QVariant DiveListModel::data(const QModelIndex &index, int role) const else if (role == DiveWaterTemperatureRole) return dive.waterTemp(); else if (role == DiveWeightRole) - return dive.weight(); + return dive.weight(0); else if (role == DiveSuitRole) return dive.suit(); else if (role == DiveCylinderRole) - return dive.cylinder(); + return dive.cylinder(0); else if (role == DiveGasRole) return dive.gas(); else if (role == DiveSacRole) |