mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	UI restructure
Don't clear out the model after we already set up the cylinders. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									c728b4b7bb
								
							
						
					
					
						commit
						9b4bd80e84
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -497,6 +497,7 @@ void MainWindow::on_actionAddDive_triggered() | ||||||
| 	displayed_dive.dc.model = "manually added dive"; // don't translate! this is stored in the XML file
 | 	displayed_dive.dc.model = "manually added dive"; // don't translate! this is stored in the XML file
 | ||||||
| 
 | 
 | ||||||
| 	// setup the dive cylinders
 | 	// setup the dive cylinders
 | ||||||
|  | 	DivePlannerPointsModel::instance()->clear(); | ||||||
| 	DivePlannerPointsModel::instance()->setupCylinders(); | 	DivePlannerPointsModel::instance()->setupCylinders(); | ||||||
| 
 | 
 | ||||||
| 	// now show the mostly empty main tab
 | 	// now show the mostly empty main tab
 | ||||||
|  | @ -509,7 +510,6 @@ void MainWindow::on_actionAddDive_triggered() | ||||||
| 	ui.infoPane->setCurrentIndex(MAINTAB); | 	ui.infoPane->setCurrentIndex(MAINTAB); | ||||||
| 
 | 
 | ||||||
| 	ui.newProfile->setAddState(); | 	ui.newProfile->setAddState(); | ||||||
| 	DivePlannerPointsModel::instance()->clear(); |  | ||||||
| 	DivePlannerPointsModel::instance()->createSimpleDive(); | 	DivePlannerPointsModel::instance()->createSimpleDive(); | ||||||
| 	ui.newProfile->plotDive(); | 	ui.newProfile->plotDive(); | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue