mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	cleanup: when planning a dive, set dive computer to first dc
When planning a dive, dc_number was set to 1, which actually is the second dc! The code seems to handle this gracefully, however it appears weird. Let's set dc_number to 0 instead. Originally, the assignment was introduced ina422957cd6and moved later in4f5621c4c6. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									83c56bc34c
								
							
						
					
					
						commit
						0424ee8996
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -885,7 +885,7 @@ void MainWindow::on_actionDivePlanner_triggered() | |||
| 	setApplicationState(ApplicationState::PlanDive); | ||||
| 
 | ||||
| 	graphics->setPlanState(); | ||||
| 	dc_number = 1; | ||||
| 	dc_number = 0; | ||||
| 
 | ||||
| 	// create a simple starting dive, using the first gas from the just copied cylinders
 | ||||
| 	DivePlannerPointsModel::instance()->createSimpleDive(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue