mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Make gas selection for add dive work
This now offers the correct gases for which we have cylinders defined. For both the planner and add dive we still don't end up with the correct cylinders in the resulting dive. But that's for another commit to fix. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									83a7f1f5b4
								
							
						
					
					
						commit
						3c8155880a
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		|  | @ -261,6 +261,9 @@ bool MainTab::isEditing() | |||
| 
 | ||||
| void MainTab::updateDiveInfo(int dive) | ||||
| { | ||||
| 	// don't execute this while adding a dive
 | ||||
| 	if (editMode == ADD) | ||||
| 		return; | ||||
| 	if (!isEnabled() && dive != -1) | ||||
| 		setEnabled(true); | ||||
| 	if (isEnabled() && dive == -1) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue