summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-02 13:58:06 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-03 09:37:55 -0700
commitce47683de82b3eb0f6e41d3cb5f2b6f035d98afa (patch)
tree5ebe072430db354587ef3d2be37b8c808d79944f /qt-ui/profile
parent635a7ab77171e9789f13accfa5904afe27460f70 (diff)
downloadsubsurface-ce47683de82b3eb0f6e41d3cb5f2b6f035d98afa.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r--qt-ui/profile/profilewidget2.cpp3
1 files changed, 3 insertions, 0 deletions
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;