mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Uemis: remove trip deletion on dive deletion
Since ff9506b21b the downloaders don't
add dives to a new trip, but the import code does. Remove the
code in the Uemis downloader that would remove a dive from the trip.
The code has been broken recently anyway (instead of testing for trip,
it tested for the notrip flag, which make no sense whatsoever).
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
			
			
This commit is contained in:
		
							parent
							
								
									2cda456282
								
							
						
					
					
						commit
						a729911893
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		|  | @ -847,8 +847,6 @@ static bool uemis_delete_dive(device_data_t *devdata, uint32_t diveid) | |||
| 	} | ||||
| 	if (dive) { | ||||
| 		devdata->download_table->dives[--devdata->download_table->nr] = NULL; | ||||
| 		if (dive->notrip) | ||||
| 			remove_dive_from_trip(dive, &trip_table); | ||||
| 
 | ||||
| 		free(dive->dc.sample); | ||||
| 		free((void *)dive->notes); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue