<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/core, branch v4.9.8</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.9.8</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.9.8'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2020-11-04T23:53:15Z</updated>
<entry>
<title>core: don't construct std::string from null in device.cpp</title>
<updated>2020-11-04T23:53:15Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-11-04T22:04:17Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=04149623c18b83e8eac9fe6f84d669c3dbd4d8fc'/>
<id>urn:sha1:04149623c18b83e8eac9fe6f84d669c3dbd4d8fc</id>
<content type='text'>
Recently the QStrings were replaced by std::strings in device.cpp
so that they can be accessed from C-code. However, libstd being
modelled after C, constructing a std::string from a NULL pointer
leads to a crash.

Fix one case where this was overlooked.

Moreover, replace a null-pointer check by empty_string(), to
treat NULL and "" equally.

Reported-by: Salvador Cuñat &lt;salvador.cunat@gmail.com&gt;
Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>revert preference settings for title color</title>
<updated>2020-11-04T22:51:55Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-11-04T22:29:48Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=be3190db8a14fc51d88c65f5359b9b7787acd2a7'/>
<id>urn:sha1:be3190db8a14fc51d88c65f5359b9b7787acd2a7</id>
<content type='text'>
Because of subsequent changes there is no clean way to just revert the changes
introduced in commit 8b36cf1051 ("desktop: offer different colors for info tab
titles"), so this manually removes the parts we don't need anymore.

This also restores a tooltip value that was inadvertantly removed in that
commit.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>cleanup: random small whitespace cleanup</title>
<updated>2020-11-04T07:08:39Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-11-02T20:17:40Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=00dd98163fd2f91e3b8e65a8c03292904771401d'/>
<id>urn:sha1:00dd98163fd2f91e3b8e65a8c03292904771401d</id>
<content type='text'>
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>desktop: offer different colors for info tab titles</title>
<updated>2020-11-04T07:08:39Z</updated>
<author>
<name>willemferguson</name>
<email>willemferguson@zoology.up.ac.za</email>
</author>
<published>2020-11-01T18:43:54Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=8b36cf10518c54d76134686a3e079bbde176022b'/>
<id>urn:sha1:8b36cf10518c54d76134686a3e079bbde176022b</id>
<content type='text'>
Add a preference option to set the color of the text on the information tab to
either MediumBlue, LightBlue or Black. The last two of these colors are meant
to enable areadable font contrast on displays with dark mode.
The choice is saved with the other preferences.

[Dirk Hohndel: this isn't really about dark mode, so changed many of the types
	       and variable names, changed the user visible texts, and
               addressed some whitespace issues]

Signed-off-by: willemferguson &lt;willemferguson@zoology.up.ac.za&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>parser: don't crash when parsing &lt;weight&gt; tags</title>
<updated>2020-11-01T18:59:39Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-11-01T13:40:57Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=386e08b69cf9257421d234237c90f29dbb32d4ee'/>
<id>urn:sha1:386e08b69cf9257421d234237c90f29dbb32d4ee</id>
<content type='text'>
When encountering a &lt;weight&gt; tag, we would parse into the last
weightsystem. However, we only create weightsystems when
encountering &lt;weightsystem&gt; tag. Therefore, this code would
either crash or overwrite the previous weightsystem.

Instead, create a new weightsystem for each &lt;weight&gt; tag.

Moreover, make sure that inside a &lt;weightsystem&gt; tag a
weightsystem actually exists. This should be the case,
but who knows...?

Reported-by: Nihal Gabr &lt;gabr.nihal@gmail.com&gt;
Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>core: on import remove merged dives from trip/divesite</title>
<updated>2020-11-01T06:20:59Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-10-31T23:58:35Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=b2b3544f3f3c9dc3995a778722a5b2ca4cadd238'/>
<id>urn:sha1:b2b3544f3f3c9dc3995a778722a5b2ca4cadd238</id>
<content type='text'>
When dives were merged on import, they were not unregistered
from their dive site and trip before being deleted. Thus, these
tables had stale pointers, which would ultimate lead to crashes.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: refactor subsurfacesysinfo.cpp</title>
<updated>2020-10-27T23:18:09Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-10-27T20:03:14Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=d747d76762ad745b510c645706c2dd708fe20302'/>
<id>urn:sha1:d747d76762ad745b510c645706c2dd708fe20302</id>
<content type='text'>
This used to be a copy of QSysInfo. However, once the requirement
was raised to Qt5.4, this was replaced by a subclass of the original
QSysInfo - which made the whole file mostly obsolete.

Just use QSysInfo directly where needed.

Only for windows.c, which can't call directly into Qt, keep the
isWin7Or8() helper function.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: move variable declaration closer to use</title>
<updated>2020-10-27T02:27:03Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-10-26T17:54:07Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=369baa5b743ec1359ac2bb143297cb203ccbe498'/>
<id>urn:sha1:369baa5b743ec1359ac2bb143297cb203ccbe498</id>
<content type='text'>
This way we avoid an unused variable warning on mobile builds.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>cleanup: remove unused function argument</title>
<updated>2020-10-27T02:27:03Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-10-26T14:54:57Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=7fb4dd7a035a25ec5c5ada52f36cc6ab683a0dec'/>
<id>urn:sha1:7fb4dd7a035a25ec5c5ada52f36cc6ab683a0dec</id>
<content type='text'>
Also, only compile the static function where it is used.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>cleanup: SkipEmptyParts syntax has changed</title>
<updated>2020-10-27T02:27:03Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-10-26T14:27:47Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=ffecc00f42f2e02f76cf616d03d179e8741f4fba'/>
<id>urn:sha1:ffecc00f42f2e02f76cf616d03d179e8741f4fba</id>
<content type='text'>
Sadly, the new enum has only been available since Qt 5.14, so this is a rather
ugly replacement.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
</feed>
