<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/qt-ui, branch v4.1</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.1</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.1'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2014-05-08T05:02:21Z</updated>
<entry>
<title>Fix another dangling pointer</title>
<updated>2014-05-08T05:02:21Z</updated>
<author>
<name>Thiago Macieira</name>
<email>thiago@macieira.org</email>
</author>
<published>2014-05-08T04:57:08Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=2e0a51264f2d8dfdb2ffe016742f6dd52b0f15e2'/>
<id>urn:sha1:2e0a51264f2d8dfdb2ffe016742f6dd52b0f15e2</id>
<content type='text'>
Same problem as the previous commit: toStdString() returns a temporary,
and c_str() will return a pointer to internal data, freed at the end of
the statement. So get the pointer to be strcpy'ed in the same statement.

Changed to toUtf8() to be more explicit about the encoding and to avoid
std::string

Signed-off-by: Thiago Macieira &lt;thiago@macieira.org&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Fix crash on dereferencing dangling pointers</title>
<updated>2014-05-08T04:52:56Z</updated>
<author>
<name>Thiago Macieira</name>
<email>thiago@macieira.org</email>
</author>
<published>2014-05-08T04:51:55Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=497d6e3e6c353d69cd6c27f7b573400b82de8ff3'/>
<id>urn:sha1:497d6e3e6c353d69cd6c27f7b573400b82de8ff3</id>
<content type='text'>
QList::first() returns a reference to an item, but that list was a
temporary. The list gets destroyed at the end of the statement (the
semi-colon), so we ended up keeping a reference to freed data (i.e., a
dangling pointer)

Signed-off-by: Thiago Macieira &lt;thiago@macieira.org&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Apply the edit of trip locations</title>
<updated>2014-05-07T22:18:59Z</updated>
<author>
<name>Anton Lundin</name>
<email>glance@acc.umu.se</email>
</author>
<published>2014-05-07T21:53:52Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=b5cc387f03dc686af63315a61779090c60c6d582'/>
<id>urn:sha1:b5cc387f03dc686af63315a61779090c60c6d582</id>
<content type='text'>
This re-adds this code that got removed in a209dfbfd53 ("Multi dive
edit: don't change location texts until user saves the change")

Signed-off-by: Anton Lundin &lt;glance@acc.umu.se&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Only mark location changed when in edit mode</title>
<updated>2014-05-07T22:18:53Z</updated>
<author>
<name>Anton Lundin</name>
<email>glance@acc.umu.se</email>
</author>
<published>2014-05-07T21:51:39Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=b59a10625163035426e422c000471f162ab25f17'/>
<id>urn:sha1:b59a10625163035426e422c000471f162ab25f17</id>
<content type='text'>
Otherwise the code loading a dive into the field would mark it as
changed.

This re-adds this code that got removed in a209dfbfd53 ("Multi dive
edit: don't change location texts until user saves the change")

Signed-off-by: Anton Lundin &lt;glance@acc.umu.se&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Improve the color coding when editing coordinates</title>
<updated>2014-05-07T22:17:58Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2014-05-07T22:14:01Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=94937d2ad9a5781c1b1d134a87cfc459c3b48cd0'/>
<id>urn:sha1:94937d2ad9a5781c1b1d134a87cfc459c3b48cd0</id>
<content type='text'>
This still gets it wrong (i.e. marks things as edited when they are not or
not edited when they are) but at least they are no longer incorrectly
marked as incorrectly parsed.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Hack around a translation issue</title>
<updated>2014-05-07T22:17:58Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2014-05-07T22:12:45Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=0a6c16f35af230d9d38629507dc51070f236e009'/>
<id>urn:sha1:0a6c16f35af230d9d38629507dc51070f236e009</id>
<content type='text'>
I cannot figure out how to get the hemisphere letters translated correctly
in qthelper.cpp. Short term hack for now - someone who understands how
this is supposed to work really needs to take a look.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Remove spurious debug printout</title>
<updated>2014-05-07T22:17:58Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2014-05-07T21:09:28Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=6763b93619262776c405b1bf214456cc49f78c3e'/>
<id>urn:sha1:6763b93619262776c405b1bf214456cc49f78c3e</id>
<content type='text'>
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Globe: assume that we are looking at the current_dive</title>
<updated>2014-05-07T22:17:58Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2014-05-07T21:01:05Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=fb82da58a28cce131ede579897bd108c820b38a0'/>
<id>urn:sha1:fb82da58a28cce131ede579897bd108c820b38a0</id>
<content type='text'>
As in commit 3870bdafee53 ("Globe: we always center on the current dive")
passing in a specific dive here makes no sense - it's always about the
current dive.

Fixes #513

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Globe: we always center on the current dive</title>
<updated>2014-05-07T22:17:47Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2014-05-07T20:58:07Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=2bc76beb65bacd8640170d85e40bdc844a368570'/>
<id>urn:sha1:2bc76beb65bacd8640170d85e40bdc844a368570</id>
<content type='text'>
Simplify the API (we'll take advantage of this in the next commit).
We always center the globe on the current dive, so no point in passing
that dive in.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Multi dive edit: don't change location texts until user saves the change</title>
<updated>2014-05-07T20:15:33Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2014-05-07T20:00:33Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=a209dfbfd53f8ba4310a89ffde4cc02a6edb2d16'/>
<id>urn:sha1:a209dfbfd53f8ba4310a89ffde4cc02a6edb2d16</id>
<content type='text'>
If we keep updating the location text of all selected dives we can lose
the status of which dives had the same text of the original dive and which
did not (this happens if the location we are adding is identical to a
selected location but adds text to the end of it).

Now we only edit the other dives after we accepted the change.

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