mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Don't call fixup_dive when editing a trip
When editing a trip the key for the notesBackup is NULL. Don't call fixup_dive() on that... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									7c8e95e1b5
								
							
						
					
					
						commit
						25bfcf5f6d
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -614,6 +614,7 @@ void MainTab::acceptChanges() | |||
| 	// each dive that was selected might have had the temperatures in its active divecomputer changed
 | ||||
| 	// so re-populate the temperatures - easiest way to do this is by calling fixup_dive
 | ||||
| 	Q_FOREACH(dive *d, notesBackup.keys()) { | ||||
| 		if (d) | ||||
| 			fixup_dive(d); | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue