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
@ -1349,6 +1349,7 @@ void ProfileWidget2::keyEscAction()
|
||||
void ProfileWidget2::plotPictures()
|
||||
{
|
||||
Q_FOREACH(DivePictureItem *item, pictures){
|
||||
item->hide();
|
||||
item->deleteLater();
|
||||
}
|
||||
pictures.clear();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user