Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-06-13 19:56:36 +02:00
commit e34da61362
7 changed files with 60 additions and 37 deletions

View file

@ -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));
}