<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 10, 2015 at 1:18 AM, Dirk Hohndel <span dir="ltr"><<a href="mailto:dirk@hohndel.org" target="_blank">dirk@hohndel.org</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
@@ -1392,6 +1395,23 @@ void ProfileWidget2::changeGas()<br>
                qDebug() << "failed to parse tank number";<br>
                tank = get_gasidx(&displayed_dive, &gasmix);<br>
        }<br>
+<br>
+       struct event **events = &get_dive_dc(&displayed_dive, dc_number)->events;<br>
+       while (*events) {<br>
+               if ((*events)->time.seconds == 0) {<br>
+                       remove_event(*events);<br>
<br>
You cannot use remove_event() on events from displayed_dive. It only<br>
removes events from current_dive<br></blockquote><div><br></div><div>So I should figure out a way to remove it from the displayed_dive or don't</div><div>do anything about it?</div><div> </div></div>§Yousef</div></div>