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>
This commit is contained in:
Dirk Hohndel 2014-02-23 08:33:58 -08:00
parent cfed6efecc
commit 48db63736b

View file

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