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:
Tomaz Canabrava 2014-05-14 21:51:45 -03:00 committed by Dirk Hohndel
parent 97419a0d6a
commit b34fb70d78

View file

@ -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()