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:
Dirk Hohndel 2014-08-05 11:42:19 -07:00
parent 4a76c3b8df
commit 3adbff2320

View file

@ -1349,6 +1349,7 @@ void ProfileWidget2::keyEscAction()
void ProfileWidget2::plotPictures()
{
Q_FOREACH(DivePictureItem *item, pictures){
item->hide();
item->deleteLater();
}
pictures.clear();