mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Hook up the tank change and tank update for the planner
This failed spectacularly when I first tried it, so I put it on the back burner. And it appears that with all my recent fixes for "add dive" as a side effect this is working, too. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									77a1ef9ebe
								
							
						
					
					
						commit
						8d284b0e24
					
				
					 1 changed files with 24 additions and 26 deletions
				
			
		|  | @ -1302,7 +1302,6 @@ bool DivePlannerPointsModel::tankInUse(int o2, int he) | |||
| 
 | ||||
| void DivePlannerPointsModel::tanksUpdated() | ||||
| { | ||||
| 	if (mode == ADD) { | ||||
| 	// we don't know exactly what changed - what we care about is
 | ||||
| 	// "did a gas change on us". So we look through the diveplan to
 | ||||
| 	// see if there is a gas that is now missing and if there is, we
 | ||||
|  | @ -1333,7 +1332,6 @@ void DivePlannerPointsModel::tanksUpdated() | |||
| 	} | ||||
| 	emit dataChanged(createIndex(0, 0), createIndex(rowCount()-1, COLUMNS-1)); | ||||
| } | ||||
| } | ||||
| 
 | ||||
| void DivePlannerPointsModel::clear() | ||||
| { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue