<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/commands, branch v5.0.1</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v5.0.1</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v5.0.1'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2021-01-11T17:31:36Z</updated>
<entry>
<title>undo: set dive mode to CCR in undo command, not profile code</title>
<updated>2021-01-11T17:31:36Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-01-11T15:52:02Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=1a0f6f53ede1a945c9964fc9de73780a94cd8217'/>
<id>urn:sha1:1a0f6f53ede1a945c9964fc9de73780a94cd8217</id>
<content type='text'>
When setting a CCR setpoint, the profile code(!) would turn
the dive into a CCR dive. Not only should the display layer
not alter dives, this also means that the action is not
undoable.

Move that to the appropriate undo command, where it makes
more sense, but obviously also makes things more complicated.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>undo: add missing invalidate_dive_cache() calls</title>
<updated>2021-01-11T16:42:17Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-01-11T10:14:41Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=5692f0d68aa1224cce7f2f25e66b8dd8663f2d66'/>
<id>urn:sha1:5692f0d68aa1224cce7f2f25e66b8dd8663f2d66</id>
<content type='text'>
The AddWeight, RemoveWeight, EditWeight and ReplanDive
commands were missing invalidate_dive_cache() calls.
Add them to ensure that the dives are written to git
logs on save.

Fixes #3150

Reported-by: Peter Zaal &lt;peter.zaal@gmail.com&gt;
Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Make sure to sanitize the gasmix after editing it</title>
<updated>2021-01-10T21:44:43Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2021-01-10T20:17:14Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=1808804babb7d7f00e798236df16bbef58114a38'/>
<id>urn:sha1:1808804babb7d7f00e798236df16bbef58114a38</id>
<content type='text'>
Otherwise we end up showing the gasmix in a different form after editing
for the usual air percentages, because we haven't normalized the gasmix
values and store them back in the dive in the non-normalized format.

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>filter: internalize shown_dives in DiveFilter class</title>
<updated>2020-12-29T16:34:09Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-10-30T21:10:31Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=c53bab8965a2d5332df55a442a999714b5f700dc'/>
<id>urn:sha1:c53bab8965a2d5332df55a442a999714b5f700dc</id>
<content type='text'>
one piece of global state removed!

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>filter: keep track on shown_dive on dive removal in DiveFilter</title>
<updated>2020-12-29T16:34:09Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-10-30T20:46:01Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=9e84fd935bd68ef667426d92f3c27b3aab58649a'/>
<id>urn:sha1:9e84fd935bd68ef667426d92f3c27b3aab58649a</id>
<content type='text'>
When removing dives, the UndoCommands would keep track of the
shown dives. When adding, they were calling into the filter
instead. Let's remove this asymmetry.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>undo: fix annoying warning message when deleting pictures</title>
<updated>2020-12-19T19:19:51Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-12-19T10:59:32Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=3c786e35c3ca614ab16141b3f0ad4a03a0bcba2b'/>
<id>urn:sha1:3c786e35c3ca614ab16141b3f0ad4a03a0bcba2b</id>
<content type='text'>
The RemovePictures command filters the pictures provided by the
UI: only actually existing pictures are removed. The code was
buggy: the original list was copied and then the filtered list
was added. Thus, every picture was listed twice leading to
annoying warning messages. Remove the copy.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>undo: add \n to console warning error messages</title>
<updated>2020-12-19T19:19:51Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-12-19T10:47:41Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=77566fe285fe0fb4ec1ac5a831d1cb27bf159945'/>
<id>urn:sha1:77566fe285fe0fb4ec1ac5a831d1cb27bf159945</id>
<content type='text'>
To make the output more readable.

Moreover, fix a comment-typo.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>core: keep tank infos in a dynamic table</title>
<updated>2020-12-13T19:49:59Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-12-11T21:34:35Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=50b11024d685129e78c36313b892dbc0e55c654c'/>
<id>urn:sha1:50b11024d685129e78c36313b892dbc0e55c654c</id>
<content type='text'>
The list of known tank types were kept in a fixed size table.
Instead, use a dynamic table with our horrendous table macros.
This is more flexible and sensible.

While doing this, clean up the TankInfoModel, which was leaking
memory.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>desktop: use getDiveSelection to access selected dives</title>
<updated>2020-12-12T23:52:40Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-11-24T19:17:27Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=16f86f2f65e73935496e3324bb16f9b8cd4d7953'/>
<id>urn:sha1:16f86f2f65e73935496e3324bb16f9b8cd4d7953</id>
<content type='text'>
In the list view two functions were still manually collecting
the selected dives. Use getDiveSelection() there as well.

Careful: that means that the check for dives that are already
outside of a trip now has to be done in the RemoveDivesFromTrip
command.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>undo: add a general dives-imported signal</title>
<updated>2020-11-14T18:01:50Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-11-14T15:59:35Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=52d5125926f430a86dc14a60911b04b8072c712a'/>
<id>urn:sha1:52d5125926f430a86dc14a60911b04b8072c712a</id>
<content type='text'>
Add a general dives-imported signal for those cases where we
want to fully rebuild models, notably, the completion models.
The divesAdded signals are too fine, because they are sent
per trip and we don't want to reload these models multiple
times per import.

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