mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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:
parent
cfed6efecc
commit
48db63736b
1 changed files with 4 additions and 5 deletions
|
@ -392,7 +392,10 @@ void ProfileWidget2::plotDives(QList<dive*> dives)
|
||||||
eventItems.push_back(item);
|
eventItems.push_back(item);
|
||||||
event = event->next;
|
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);
|
diveComputerText->setText(currentdc->model);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -563,10 +566,6 @@ void ProfileWidget2::setProfileState()
|
||||||
tissue->setVisible(true);
|
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;
|
extern struct ev_select *ev_namelist;
|
||||||
|
|
Loading…
Add table
Reference in a new issue