mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	cleanup: don't update tabs twice in MainTab::rejectChanges
The updateDiveInfo() call updates all tabs. No need to do it right afterwards. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									e3950df864
								
							
						
					
					
						commit
						fb18bc0803
					
				
					 1 changed files with 0 additions and 4 deletions
				
			
		|  | @ -611,10 +611,6 @@ void MainTab::rejectChanges() | |||
| 		clear_dive(&displayed_dive); | ||||
| 	updateDiveInfo(); | ||||
| 
 | ||||
| 	for (auto widget: extraWidgets) { | ||||
| 		widget->updateData(); | ||||
| 	} | ||||
| 
 | ||||
| 	// TODO: This is a temporary hack until the equipment tab is included in the undo system:
 | ||||
| 	// The equipment tab is hardcoded at the first place of the "extra widgets".
 | ||||
| 	((TabDiveEquipment *)extraWidgets[0])->rejectChanges(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue