mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-17 19:36:15 +00:00
Speed Improvement: Unhide all events by calling event->show()
The old code replotted the whole dive, while what we really wanted was to show the events. so just ->show() them. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
97419a0d6a
commit
b34fb70d78
1 changed files with 2 additions and 1 deletions
|
@ -816,7 +816,8 @@ void ProfileWidget2::unhideEvents()
|
|||
for (int i = 0; i < evn_used; i++) {
|
||||
ev_namelist[i].plot_ev = true;
|
||||
}
|
||||
replot();
|
||||
Q_FOREACH (DiveEventItem *item, eventItems)
|
||||
item->show();
|
||||
}
|
||||
|
||||
void ProfileWidget2::removeEvent()
|
||||
|
|
Loading…
Add table
Reference in a new issue