mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Don't mess with the selection when closing a file
Our core structures are kept consistent by calling delete_single_dive() and there is no reason at all to even touch the UI selection as this all goes away with cleanUpEmpty() Fixes #660 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									28bd1fdcb5
								
							
						
					
					
						commit
						edea301252
					
				
					 1 changed files with 0 additions and 4 deletions
				
			
		|  | @ -265,10 +265,6 @@ void MainWindow::closeCurrentFile() | ||||||
| 	while (dive_table.nr) | 	while (dive_table.nr) | ||||||
| 		delete_single_dive(0); | 		delete_single_dive(0); | ||||||
| 
 | 
 | ||||||
| 	ui.ListWidget->clearSelection(); |  | ||||||
| 	/* clear the selection and the statistics */ |  | ||||||
| 	selected_dive = -1; |  | ||||||
| 
 |  | ||||||
| 	free((void *)existing_filename); | 	free((void *)existing_filename); | ||||||
| 	existing_filename = NULL; | 	existing_filename = NULL; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue