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>
This commit is contained in:
Dirk Hohndel 2015-11-16 15:37:16 -08:00
parent e6c86700e4
commit ddef5650f6

View file

@ -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)