From 3adbff2320b90bbf27b1bedb540ec3d74fb30f9b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 5 Aug 2014 11:42:19 -0700 Subject: 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 --- qt-ui/profile/profilewidget2.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/profile') diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 6a99ff99e..3b37e4115 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -1349,6 +1349,7 @@ void ProfileWidget2::keyEscAction() void ProfileWidget2::plotPictures() { Q_FOREACH(DivePictureItem *item, pictures){ + item->hide(); item->deleteLater(); } pictures.clear(); -- cgit v1.2.3-70-g09d2