aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-23 08:33:58 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-23 08:33:58 -0800
commit48db63736b246a4731e8f907cd0990388862b8df (patch)
treed45dd14044f21cbf1481abc000901286aa3f1ba6 /qt-ui
parentcfed6efecce0822fafaa4568a89e1f563a54afcf (diff)
downloadsubsurface-48db63736b246a4731e8f907cd0990388862b8df.tar.gz
Don't try to set visibility of events before they have been added
Admittedly this code doesn't do anything useful right now, but at least have it not to anything useful in the right spot. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/profile/profilewidget2.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index ca0bdec2b..9152f1c76 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -392,7 +392,10 @@ void ProfileWidget2::plotDives(QList<dive*> dives)
eventItems.push_back(item);
event = event->next;
}
-
+ // Only set visible the ones that should be visible, but how?
+ Q_FOREACH(DiveEventItem *event, eventItems){
+ event->setVisible(true);
+ }
diveComputerText->setText(currentdc->model);
}
@@ -563,10 +566,6 @@ void ProfileWidget2::setProfileState()
tissue->setVisible(true);
}
}
- // Only set visible the ones that should be visible, but how?
- Q_FOREACH(DiveEventItem *event, eventItems){
- event->setVisible(true);
- }
}
extern struct ev_select *ev_namelist;