mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	cleanup: move clearing of event names to clear_dive_file_data()
Move this to the core so that desktop and mobile don't have to call this explicitly. Matter of fact, mobile didn't call this. It is unclear, whether that was even used on mobile, though. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									17526ded58
								
							
						
					
					
						commit
						d8fabd241c
					
				
					 2 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -1369,6 +1369,7 @@ void clear_dive_file_data()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	clear_dive(&displayed_dive);
 | 
						clear_dive(&displayed_dive);
 | 
				
			||||||
	clear_device_nodes();
 | 
						clear_device_nodes();
 | 
				
			||||||
 | 
						clear_events();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	reset_min_datafile_version();
 | 
						reset_min_datafile_version();
 | 
				
			||||||
	clear_git_id();
 | 
						clear_git_id();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -660,8 +660,6 @@ void MainWindow::closeCurrentFile()
 | 
				
			||||||
		setTitle();
 | 
							setTitle();
 | 
				
			||||||
	disableShortcuts();
 | 
						disableShortcuts();
 | 
				
			||||||
	setFileClean();
 | 
						setFileClean();
 | 
				
			||||||
 | 
					 | 
				
			||||||
	clear_events();
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void MainWindow::updateCloudOnlineStatus()
 | 
					void MainWindow::updateCloudOnlineStatus()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue