mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	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:
		
							parent
							
								
									e6c86700e4
								
							
						
					
					
						commit
						ddef5650f6
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -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) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue