aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/profile/profilewidget2.cpp')
-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;