summaryrefslogtreecommitdiffstats
path: root/qt-ui/profilegraphics.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-13 19:56:36 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-13 19:56:36 +0200
commite34da61362c0a64b8fd932c3363421c766595d4a (patch)
treea1e71824e9e94eafd791c0c005b78371fa7dc1e5 /qt-ui/profilegraphics.cpp
parent863c48593949e91beb6b7ff02a1385b9977182f5 (diff)
parent7e9d6e28297432d4a15721a49a9dd0c0d067ce7e (diff)
downloadsubsurface-e34da61362c0a64b8fd932c3363421c766595d4a.tar.gz
Merge branch 'linusDiveList' of https://github.com/tcanabrava/subsurface
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profilegraphics.cpp')
-rw-r--r--qt-ui/profilegraphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index 11249d831..39edd690a 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -217,7 +217,7 @@ void ProfileGraphicsView::showEvent(QShowEvent* event)
// but the dive was not ploted.
// force a replot by modifying the dive
// hold by the view, and issuing a plot.
- if (dive) {
+ if (dive && !scene()->items().count()) {
dive = 0;
plot(get_dive(selected_dive));
}