mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Turn off dive location edit hint when cancelling dive edit
Simply clear the edited dive (regardless of whether it's set) and hide the message if visible. The previous code was a little too convoluted... Fixes #305 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									31f64e9b48
								
							
						
					
					
						commit
						d668f5dc8e
					
				
					 2 changed files with 6 additions and 5 deletions
				
			
		|  | @ -185,11 +185,11 @@ void GlobeGPS::repopulateLabels() | |||
| 
 | ||||
| void GlobeGPS::reload() | ||||
| { | ||||
| 	if (editingDiveCoords) { | ||||
| 	editingDiveCoords = 0; | ||||
| 
 | ||||
| 	if (messageWidget->isVisible()) | ||||
| 		messageWidget->animatedHide(); | ||||
| 	} | ||||
| 
 | ||||
| 	repopulateLabels(); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -713,6 +713,7 @@ void MainTab::rejectChanges() | |||
| 	notesBackup.clear(); | ||||
| 	resetPallete(); | ||||
| 	editMode = NONE; | ||||
| 	mainWindow()->globe()->reload(); | ||||
| 	if (lastMode == ADD || lastMode == MANUALLY_ADDED_DIVE) { | ||||
| 		// more clean up
 | ||||
| 		updateDiveInfo(selected_dive); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue