From ce47683de82b3eb0f6e41d3cb5f2b6f035d98afa Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 2 Jul 2014 13:58:06 -0700 Subject: UI restructure: always display pictures for displayed dive The only time this is ever wrong is in print mode, so let's never show pictures in print mode. Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qt-ui/profile/profilewidget2.cpp') diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 05f592ab8..7a17fd7fb 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -1343,6 +1343,9 @@ void ProfileWidget2::keyEscAction() void ProfileWidget2::plotPictures() { + if (printMode) + return; + qDeleteAll(pictures); pictures.clear(); double x, y, lastX = -1.0, lastY = -1.0; -- cgit v1.2.3-70-g09d2