<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/qt-models, branch v5.0.2</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v5.0.2</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v5.0.2'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2021-05-12T08:02:47Z</updated>
<entry>
<title>Planner: Update plan when deco parameters change</title>
<updated>2021-05-12T08:02:47Z</updated>
<author>
<name>Robert C. Helling</name>
<email>helling@atdotde.de</email>
</author>
<published>2021-05-08T20:14:54Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=5dfc18351741f31fa573005fd8d533c0aab4a592'/>
<id>urn:sha1:5dfc18351741f31fa573005fd8d533c0aab4a592</id>
<content type='text'>
This makes sure that the dive plan is updated (including the
planner notes) when parameters of the dive or the planner
change.

This fixes a bug reported by Jay Anchor.

There is a chance that by partly undoing 77a6bc6d623148, this
introduces too many recalculations of the plan. But without
this patch, there are definitely not enough recalculations.

Reported-by: Jay Anchor &lt;jay.anchor-subsurface@e257.fi&gt;
Signed-off-by: Robert C. Helling &lt;helling@atdotde.de&gt;
</content>
</entry>
<entry>
<title>profile: remove DiveAmbPressureItem</title>
<updated>2021-05-08T11:40:24Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-05-08T07:50:00Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=a7002f4089e76efc0667d22fc10f44ada35ec1bd'/>
<id>urn:sha1:a7002f4089e76efc0667d22fc10f44ada35ec1bd</id>
<content type='text'>
This was replaced by the tissue map in 893bea700c98.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>profile: remove DiveGFLineItem</title>
<updated>2021-05-08T11:40:24Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-05-08T07:46:09Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=8b0db14f64c4f1f3e3438b35fcfcd94994459283'/>
<id>urn:sha1:8b0db14f64c4f1f3e3438b35fcfcd94994459283</id>
<content type='text'>
This was replaced by the tissue map in 893bea700c98.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Planner: Update notes when not computing variations</title>
<updated>2021-05-07T18:20:30Z</updated>
<author>
<name>Robert C. Helling</name>
<email>helling@atdotde.de</email>
</author>
<published>2021-05-07T15:52:30Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=312b760c5b189d8171fa3cbbe8dda868cffd546d'/>
<id>urn:sha1:312b760c5b189d8171fa3cbbe8dda868cffd546d</id>
<content type='text'>
A change not to compute plan variations when not needed
was too aggressive and eliminated also the signal to update
the notes. Bug fixed.

Reported-by: Jay Anchor &lt;jay.anchor-subsurface@e257.fi&gt;
Signed-off-by: Robert C. Helling &lt;helling@atdotde.de&gt;
</content>
</entry>
<entry>
<title>planner: split DivePlannerPointsModel::remove() in two</title>
<updated>2021-04-02T20:53:23Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-03-02T09:54:36Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=11c54b85f6f6c567e5a9f6e6e537eace49ee6666'/>
<id>urn:sha1:11c54b85f6f6c567e5a9f6e6e537eace49ee6666</id>
<content type='text'>
There are two cases in this function: with and without holding
the control-key. The former deletes one point, the latter all
points starting with the selected point to the end.

The code was interlaced making it very hard to reason about.
Notably, it was buggy: with control, all points could be
deleted, leading to a crash.

Split the function in two versions, with their own bound
checking. This produces a bit of duplicate code, which
might be broken out later.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>planner: avoid starting unneeded variation thread</title>
<updated>2021-04-02T20:53:23Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-02-28T16:28:09Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=a0f6b4d0b40aa61f670bb2eee1c898b1942dd42d'/>
<id>urn:sha1:a0f6b4d0b40aa61f670bb2eee1c898b1942dd42d</id>
<content type='text'>
When updating the dive profile, a thread is started to calculate
plan-variations. This is done even when only editing the profile
or when variation calculation is disabled by the user. The thread
then exits if it shouldn't calculate the variations.

Turn this around: test whether variations should be calculated
before starting the thread.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>planner: remove DivePlannerPointsModel::recalc flag</title>
<updated>2021-04-02T20:53:23Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-02-27T21:39:01Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=0f8560276d1a8116f4d4e7ce9c950d3a433e38c8'/>
<id>urn:sha1:0f8560276d1a8116f4d4e7ce9c950d3a433e38c8</id>
<content type='text'>
There was no user of that flag left.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>planner: call removeDeco() explicitly</title>
<updated>2021-04-02T20:53:23Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-02-27T21:34:08Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=f0f3b4a13c59f7886ae41de85929831fa100b5bb'/>
<id>urn:sha1:f0f3b4a13c59f7886ae41de85929831fa100b5bb</id>
<content type='text'>
removeDeco() was called by addStop() if the recalc flag was
set. If the caller didn't want to call removeDeco() it had
to clear and restore the flag.

Instead, call removeDeco() explicitly when needed.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>planner: don't clear recalc in DivePlannerPointsModel::clear()</title>
<updated>2021-04-02T20:53:23Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-02-27T21:27:47Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=c7dcd7fbf0173fb665e5b9c348e0ead7f969e827'/>
<id>urn:sha1:c7dcd7fbf0173fb665e5b9c348e0ead7f969e827</id>
<content type='text'>
There are no more external users of this flag, therefore clearing
that flag is a no-op.

Moreover, clear the cylinders array and the preserved_until
flag befor emitting the model-reset signal.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>planner: split DivePlannerPointsModel::removePoints() in two</title>
<updated>2021-04-02T20:53:23Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-02-27T21:24:33Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=601861ef5e05b88b9721cde5b49d16b5b00caa50'/>
<id>urn:sha1:601861ef5e05b88b9721cde5b49d16b5b00caa50</id>
<content type='text'>
Split the function in one external version, that updates the
dive profile and cylinders and one internal version, that
does no recalculations. In the latter case, the caller is
responsible for updating the dive.

Thus, the recalculation flag-clearing can be removed from
removeDeco().

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
</feed>
