[PATCH 2/2] Ticket #831 Fix
Yosef Hamza
jo.adam.93 at gmail.com
Mon Mar 9 16:59:53 PDT 2015
On Tue, Mar 10, 2015 at 1:18 AM, Dirk Hohndel <dirk at hohndel.org> wrote:
>
>
>
> @@ -1392,6 +1395,23 @@ void ProfileWidget2::changeGas()
> qDebug() << "failed to parse tank number";
> tank = get_gasidx(&displayed_dive, &gasmix);
> }
> +
> + struct event **events = &get_dive_dc(&displayed_dive,
> dc_number)->events;
> + while (*events) {
> + if ((*events)->time.seconds == 0) {
> + remove_event(*events);
>
> You cannot use remove_event() on events from displayed_dive. It only
> removes events from current_dive
>
So I should figure out a way to remove it from the displayed_dive or don't
do anything about it?
§Yousef
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150310/317df99c/attachment.html>
More information about the subsurface
mailing list