From ddef5650f6ea9db2a8eed38a0147948cd58a7bbd Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 16 Nov 2015 15:37:16 -0800 Subject: 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 --- qt-models/divelistmodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-models') 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) -- cgit v1.2.3-70-g09d2