diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-06-13 19:56:36 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-13 19:56:36 +0200 |
commit | e34da61362c0a64b8fd932c3363421c766595d4a (patch) | |
tree | a1e71824e9e94eafd791c0c005b78371fa7dc1e5 /qt-ui/profilegraphics.cpp | |
parent | 863c48593949e91beb6b7ff02a1385b9977182f5 (diff) | |
parent | 7e9d6e28297432d4a15721a49a9dd0c0d067ce7e (diff) | |
download | subsurface-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.cpp | 2 |
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)); } |