mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Back to profile or empty state when finishing addition.
This patch adds a signal to MainTab, that should be removed from there when we finish the rework on the edit part, to go to the edit classes, but in the meantime, let's keep it there. The signal is connected to the ProfileWidget in a way that the end of the edit will also trigger the profile to go back to ProfileState (show the dive, if there's any) or empty Profile (if there's none). Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									3661f291a4
								
							
						
					
					
						commit
						fe1df6b1cc
					
				
					 4 changed files with 12 additions and 0 deletions
				
			
		|  | @ -761,6 +761,7 @@ void MainTab::acceptChanges() | |||
| 		editMode = NONE; | ||||
| 		MainWindow::instance()->refreshDisplay(); | ||||
| 		MainWindow::instance()->graphics()->replot(); | ||||
| 		emit addDiveFinished(); | ||||
| 	} else { | ||||
| 		editMode = NONE; | ||||
| 		MainWindow::instance()->dive_list()->rememberSelection(); | ||||
|  | @ -861,6 +862,7 @@ void MainTab::rejectChanges() | |||
| 			delete_single_dive(selected_dive); | ||||
| 			MainWindow::instance()->dive_list()->reload(DiveTripModel::CURRENT); | ||||
| 			MainWindow::instance()->dive_list()->restoreSelection(); | ||||
| 			emit addDiveFinished(); | ||||
| 		} | ||||
| 		if (selected_dive >= 0) { | ||||
| 			multiEditEquipmentPlaceholder = *get_dive(selected_dive); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue