mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +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
Reference in a new issue