mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
New profile: fix event hiding logic
Turns out we unconditionally set all events as visible when redrawing the dive - even with a comment that this should take into account if the event is visible. Oops. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0f7dfcee26
commit
33b1b0ed9d
3 changed files with 14 additions and 9 deletions
|
@ -441,8 +441,8 @@ void ProfileWidget2::plotDives(QList<dive *> dives)
|
|||
}
|
||||
// Only set visible the ones that should be visible, but how?
|
||||
Q_FOREACH(DiveEventItem * event, eventItems) {
|
||||
event->setVisible(true);
|
||||
// qDebug() << event->getEvent()->name << "@" << event->getEvent()->time.seconds;
|
||||
event->setVisible(!event->shouldBeHidden());
|
||||
// qDebug() << event->getEvent()->name << "@" << event->getEvent()->time.seconds << "is hidden:" << event->isHidden();
|
||||
}
|
||||
diveComputerText->setText(currentdc->model);
|
||||
if (MainWindow::instance()->filesFromCommandLine() && animSpeedBackup != -1){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue