mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Picture handling: hide the pictures before deleting
Because of the way deleteLater() is implemented, the pictures need to be hidden, otherwise they might stay around at the wrong time (e.g., when printing). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									4a76c3b8df
								
							
						
					
					
						commit
						3adbff2320
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -1349,6 +1349,7 @@ void ProfileWidget2::keyEscAction() | |||
| void ProfileWidget2::plotPictures() | ||||
| { | ||||
| 	Q_FOREACH(DivePictureItem *item, pictures){ | ||||
| 		item->hide(); | ||||
| 		item->deleteLater(); | ||||
| 	} | ||||
| 	pictures.clear(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue