diff options
Diffstat (limited to 'qt-models')
-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) |