<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git, branch v4.9.1</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.9.1</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.9.1'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2019-08-01T20:29:38Z</updated>
<entry>
<title>Prepare for 4.9.1 release</title>
<updated>2019-08-01T20:29:38Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2019-08-01T20:29:38Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=6e4c3ce6d8c1024adadab5d1915df49e6199f821'/>
<id>urn:sha1:6e4c3ce6d8c1024adadab5d1915df49e6199f821</id>
<content type='text'>
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Desktop: correct tooltip for filter close button</title>
<updated>2019-07-29T05:24:05Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2019-07-28T20:38:39Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=29f5d15a66924a989eb83ec803fdf878017f6a56'/>
<id>urn:sha1:29f5d15a66924a989eb83ec803fdf878017f6a56</id>
<content type='text'>
This button only closes the filter panel but doesn't clear it.

Reported-by: Adric Norris &lt;landstander668@gmail.com&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Crash fix: prevent crash in MapLocationModel::reload</title>
<updated>2019-07-27T21:57:31Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2019-07-27T20:30:09Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=b0f1b258064bcbeb9cfc70dd4346dde5a90546ea'/>
<id>urn:sha1:b0f1b258064bcbeb9cfc70dd4346dde5a90546ea</id>
<content type='text'>
Commit 0c387549164d7eec3ea6647c54ada2fba7f8d5e6 introduced a
bug in MapLocationModel::reload() by setting an entry in the
name-to-location map before the location was initialized.

Move the setting of the map entry back where it was before:
after the assignment of the location variable.

Moreover, define the location variable directly on allocation
of the location to avoid thus bugs in the future.

Why did we not get a "might be used unitialized" warning
anyway?

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Core: split copy_cylinders() in two functions</title>
<updated>2019-07-27T18:55:05Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2019-07-25T20:29:07Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=a0cd89f850d727f161eba19e0ee4b19e5aaf8f57'/>
<id>urn:sha1:a0cd89f850d727f161eba19e0ee4b19e5aaf8f57</id>
<content type='text'>
copy_cylinders() copied the cylinders of one dive onto another dive
and then reset to the original gas values. Presumably, when copy and
pasting cylinders from one dive to another, only the types should
be copied, not the gases.

Moreover, the function could either copy all or only the used cylinders.

Firstly, the code was bogus: when restoring the pressures the indices
were mixed up: the old indices were used. Thus, when there where
uncopied cylinders, not all pressure values were restored.

Secondly, it is not clear that all callers actually want to restore
the pressure data. It rather appears the two (out of three) callers
actually just want to copy the cylinders.

Therefore, split the function in
  1) copy_cylinders(): copy the cylinders with pressure data
  2) copy_cylinder_types(): copy only the cylinder information

Since there is only one caller of copy_cylinder_types(), the "used_only"
argument can be removed. Since all cylinders are copied there is
no point in storing the pressure data. Don't overwrite it in
the first place.

The resulting two functions should be distinctly easier to understand.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Desktop: fix index in weightsystems_equal()</title>
<updated>2019-07-27T18:51:34Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2019-07-27T14:44:24Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=999a63a5bba58d39a23da34b0eddc37324298699'/>
<id>urn:sha1:999a63a5bba58d39a23da34b0eddc37324298699</id>
<content type='text'>
The weightsystem_equal() function compares weightsystems of two dives
to decide whether the "commit changes" message should be shown and
to decide which dives are edited when changing multiple dives.

Due to an index mixup the function returned wrong results for
more than two weightsystems. Fix it.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Cleanup: remove TankItem::diveCylinderStore</title>
<updated>2019-07-27T18:45:17Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2019-07-27T15:05:34Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=9485ace7098a7b76d9aee9d3eb1f5fc5becc2652'/>
<id>urn:sha1:9485ace7098a7b76d9aee9d3eb1f5fc5becc2652</id>
<content type='text'>
The last user of this member variable was removed in commit
96ed09bf145a5e108ca8098a1a5814784bcbebd2.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Bluetooth: autodetect Shearwater NERD models</title>
<updated>2019-07-20T04:50:36Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2019-07-20T04:50:36Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=52cb38e5405bb402da45bdfcc5ba18d2225b0378'/>
<id>urn:sha1:52cb38e5405bb402da45bdfcc5ba18d2225b0378</id>
<content type='text'>
This should allow it to work with Subsurface-mobile as well.

Fixes #2187

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Android: ensure higher build number for arm64 APK</title>
<updated>2019-07-20T04:46:07Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2019-07-18T19:45:49Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=318ddc72276dc297bda75789d6eafcddb754b11c'/>
<id>urn:sha1:318ddc72276dc297bda75789d6eafcddb754b11c</id>
<content type='text'>
Google Play allows uploading two APKs, but only if the arm64 one
has a higher build number.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Cleanup: remove bogus mark_divelist_changed() calls</title>
<updated>2019-07-20T04:44:13Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2019-07-17T13:58:26Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=94521c9958f5416311318826450825fcbaede4ce'/>
<id>urn:sha1:94521c9958f5416311318826450825fcbaede4ce</id>
<content type='text'>
The parsers / downloaders parse into a separate table and do
not directly change the divelist. Therefore, they shouldn't
call mark_divelist_changed().

Likewise split_dive_at() doesn't modify the dive list and
therefore shouldn't call this function.

Calling the function has the unwanted side-effect that undoing
the change will not clear the *-symbol in the title of the
main window.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Undo: make editing of dive number undoable</title>
<updated>2019-07-20T04:44:13Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2019-07-17T13:49:45Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=726d08c2f71920acd8e5cc9b2d6850d1249466aa'/>
<id>urn:sha1:726d08c2f71920acd8e5cc9b2d6850d1249466aa</id>
<content type='text'>
When pressing F2 in the dive list, the number can be edited.
Make this action undoable by implementing a EditNumber command.

This command is differs from the other undo commands, as not the
currently selected dives are changed. This means that the EditCommand
needs an alternative constructor taking a single dive. This constructor
was implemented in the base class so that all edit commands can now
be called with a single dive.

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