mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Planner: return Profile widget to profile state
This still crashes when canceling the plan. And doesn't display the correct dive profile until you switch to a different dive and back. And Keyboard focus is wrong. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									7bed6e9873
								
							
						
					
					
						commit
						1f2159dd0c
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -251,7 +251,7 @@ DivePlannerWidget::DivePlannerWidget(QWidget *parent, Qt::WindowFlags f) : QWidg | |||
| 	connect(ui.gflow, SIGNAL(valueChanged(int)), plannerModel, SLOT(setGFLow(int))); | ||||
| 	connect(ui.lastStop, SIGNAL(toggled(bool)), plannerModel, SLOT(setLastStop6m(bool))); | ||||
| 
 | ||||
| 	// Creating the plan
 | ||||
| 	// Creating (and canceling) the plan
 | ||||
| 	connect(ui.buttonBox, SIGNAL(accepted()), plannerModel, SLOT(createPlan())); | ||||
| 	connect(ui.buttonBox, SIGNAL(rejected()), plannerModel, SLOT(cancelPlan())); | ||||
| 	connect(plannerModel, SIGNAL(planCreated()), MainWindow::instance(), SLOT(removeFakeDiveForAddAndPlan())); | ||||
|  | @ -666,6 +666,7 @@ void DivePlannerPointsModel::cancelPlan() | |||
| 		stagingDive = NULL; | ||||
| 	} | ||||
| 	setPlanMode(NOTHING); | ||||
| 	MainWindow::instance()->graphics()->setProfileState(); | ||||
| 	diveplan.dp = NULL; | ||||
| } | ||||
| 
 | ||||
|  | @ -877,4 +878,5 @@ void DivePlannerPointsModel::createPlan() | |||
| 	CylindersModel::instance()->setDive(current_dive); | ||||
| 	CylindersModel::instance()->update(); | ||||
| 	plannerModel->setRecalc(oldRecalc); | ||||
| 	MainWindow::instance()->graphics()->setProfileState(); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue