<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/core, branch v4.7.7</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom/core?h=v4.7.7</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom/core?h=v4.7.7'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2018-02-07T08:44:43Z</updated>
<entry>
<title>Cleanup: unserialize loading of pictures</title>
<updated>2018-02-07T08:44:43Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-02-06T19:04:09Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=fe133e2cca3830cd69c3c006c4fe350f1e4640fb'/>
<id>urn:sha1:fe133e2cca3830cd69c3c006c4fe350f1e4640fb</id>
<content type='text'>
The images to load are kept in a set to avoid multiple loading of
the same picture. The set was protected with a mutex.

Problem: the mutex was not released before loading the picture,
effectively serializing the loading of pictures.

Therefore unlock the mutex once the set is updated.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Cleanup: remove unused typedef</title>
<updated>2018-02-07T08:44:43Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-02-06T19:00:31Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=4c84c0baf15ccbb2f136295e8132abfdbe0ccbd1'/>
<id>urn:sha1:4c84c0baf15ccbb2f136295e8132abfdbe0ccbd1</id>
<content type='text'>
The type SHashedFilename defined in core/imagedownloader.h was not
used anywhere.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Cleanup: Make local helpers and variables of static linkage</title>
<updated>2018-02-07T08:44:43Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-02-06T18:58:07Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=9986ce25d77d7abe8bdf5c1fca6ac98893ff2f10'/>
<id>urn:sha1:9986ce25d77d7abe8bdf5c1fca6ac98893ff2f10</id>
<content type='text'>
In core/imagedownloader.cpp the helpers cloudImageUrl() and loadPicture()
are made of static linkage.

The global variables queuedPictures and pictureQueueMutex were moved
into the loadPicture() function, because they are used only there.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Do not remove seconds from duration input field</title>
<updated>2018-02-04T21:40:02Z</updated>
<author>
<name>Oliver Schwaneberg</name>
<email>oliver.schwaneberg@gmail.com</email>
</author>
<published>2018-02-04T19:07:32Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=eb38a641490752578e3dddc7b7959cfd52e0be74'/>
<id>urn:sha1:eb38a641490752578e3dddc7b7959cfd52e0be74</id>
<content type='text'>
This change deals with issue #554.
If you enter a dive duration manually, the cell renderer cuts the seconds
away when the changes are saved. I added the helper "render_seconds_to_string"
as a counterpart to "parseDurationToSeconds". The helper keeps the seconds,
if not null. The rendering of the cell is done at two places in the code,
so I think it is cleaner to add a dedicated method for it.

Signed-off-by: Oliver Schwaneberg &lt;oliver.schwaneberg@gmail.com&gt;
</content>
</entry>
<entry>
<title>Free various struct membuffer in different functions</title>
<updated>2018-02-02T19:29:55Z</updated>
<author>
<name>Stefan Fuchs</name>
<email>sfuchs@gmx.de</email>
</author>
<published>2018-01-22T19:29:55Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=b5ce06c8b958cdc51761c31697189db81baf4423'/>
<id>urn:sha1:b5ce06c8b958cdc51761c31697189db81baf4423</id>
<content type='text'>
Signed-off-by: Stefan Fuchs &lt;sfuchs@gmx.de&gt;
</content>
</entry>
<entry>
<title>Print icd data only when it is really needed</title>
<updated>2018-02-02T12:14:09Z</updated>
<author>
<name>Willem Ferguson</name>
<email>willemferguson@zoology.up.ac.za</email>
</author>
<published>2018-01-28T15:44:54Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=5416fc7afb8417d04679b6f90f8668c5c9746cb8'/>
<id>urn:sha1:5416fc7afb8417d04679b6f90f8668c5c9746cb8</id>
<content type='text'>
Reduce the impact and visibility of icd calculations by writing
the data to the planner output only in cases where gas switches
involve:

1) ascent
2) helium is used as part of breathing gas
3) gas switch results in an increase in partial pressure of nitrogen.

Coding change:

1) The code for writing the header of the icd table as well as
   the inclusion of the data in the planner output is made
   conditional on the above three requirements. This involves
   moving the code that writes the table header into the
   function that writes an icd data item to buffer.
2) Manipulation of a boolean variable that controls writing
   of the table header to buffer and that also determines
   whether any icd results should be inluded in the planner
   results.
3) Reorganise comments so that there are not multiple tabs between
   the code and the start of a comment.

Correct type and insert braces where important

Signed-off-by: Willem Ferguson &lt;willemferguson@zoology.up.ac.za&gt;
</content>
</entry>
<entry>
<title>mobile cleanup: restyle construction of locationlist</title>
<updated>2018-01-31T13:48:14Z</updated>
<author>
<name>Jan Mulder</name>
<email>jlmulder@xs4all.nl</email>
</author>
<published>2018-01-28T14:21:28Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=494ad2654082d85846cb902556921ab62a6dbb14'/>
<id>urn:sha1:494ad2654082d85846cb902556921ab62a6dbb14</id>
<content type='text'>
See also e6e1473e6. The construction of the locationlist
was not the same as the 3 previous lists, and it needs
the inclusion of a new model file (divelocationmodel.cpp)
in the mobile app. In addition, as the mobile app is mainly
interested in a simple stringList (model) to populate a HintsText
field (or maybe later a combobox), this stringlist is added
to the model, to easy interfacing with QML.

Signed-off-by: Jan Mulder &lt;jlmulder@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>mobile cleanup: unduplicate code and do not loop over dives (3)</title>
<updated>2018-01-31T13:48:14Z</updated>
<author>
<name>Jan Mulder</name>
<email>jlmulder@xs4all.nl</email>
</author>
<published>2018-01-28T10:28:01Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=83259008e763d3cc120c826f58f91a0ff62b6b92'/>
<id>urn:sha1:83259008e763d3cc120c826f58f91a0ff62b6b92</id>
<content type='text'>
See e6e1473e6. Exact same commit but here for the
list of divemaster. The careful reader will spot a
small addition to the clearDetailsEdit() QML function.
Two more field are cleared.

Signed-off-by: Jan Mulder &lt;jlmulder@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>mobile cleanup: unduplicate code and do not loop over dives (2)</title>
<updated>2018-01-31T13:48:14Z</updated>
<author>
<name>Jan Mulder</name>
<email>jlmulder@xs4all.nl</email>
</author>
<published>2018-01-28T09:26:45Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=572fc470718e4a11d5df60b37e7a2a91639285c7'/>
<id>urn:sha1:572fc470718e4a11d5df60b37e7a2a91639285c7</id>
<content type='text'>
See e6e1473e6. Exact same commit but here for the
list of buddies.

Signed-off-by: Jan Mulder &lt;jlmulder@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>mobile cleanup: unduplicate code and do not loop over dives (1)</title>
<updated>2018-01-31T13:48:14Z</updated>
<author>
<name>Jan Mulder</name>
<email>jlmulder@xs4all.nl</email>
</author>
<published>2018-01-28T08:52:51Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=fed2c5b6a1c71649bcb310c0bd118cb1abcf9ea0'/>
<id>urn:sha1:fed2c5b6a1c71649bcb310c0bd118cb1abcf9ea0</id>
<content type='text'>
This is the first of a set of commits that are (very) similar.
It appeared that a number of more or less static lists, which are
constructed by a loop over all dives in the logbook, were executed
when changing focus to a next dive. For example, the in this
commit addressed list of used dive suits.

What was wrong was that the suitList was linked to a dive. There
is only a need to construct the list of used suits when data is
changed (and obviously, once on startup of the app). Further, it
appeared that a lot of code was duplicated and that we can use
(in this case) the same code from the desktop completionmodels.cpp.

Basically, this commit involves the following changes:
- include completionmodels.cpp in mobile and desktop (so move
it from the desktop only category to the generic category).
- remove double code from DiveObjectHelper.cpp
- Do not differentiate in the init phase and the normal refresh
of the list
- the per dive logic is now only the getting of a previously
constructed list (in init or update of the divelist).

There are no visible changes in the UI, other than a better
performance when scrolling over dive details.

Signed-off-by: Jan Mulder &lt;jlmulder@xs4all.nl&gt;
</content>
</entry>
</feed>
