diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-02-23 08:33:58 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-23 08:33:58 -0800 |
commit | 48db63736b246a4731e8f907cd0990388862b8df (patch) | |
tree | d45dd14044f21cbf1481abc000901286aa3f1ba6 /qt-ui | |
parent | cfed6efecce0822fafaa4568a89e1f563a54afcf (diff) | |
download | subsurface-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.cpp | 9 |
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; |