diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-09-14 19:43:40 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-09-21 16:12:23 -0700 |
commit | ce751bd6963d13c23f554da4e5fc66ee0d74eb1f (patch) | |
tree | dc327f225b49048cf605c4c7c51dc443be738a7d /core/devicedetails.cpp | |
parent | 067a481b781b09d4f672733550eba987981ea8b6 (diff) | |
download | subsurface-ce751bd6963d13c23f554da4e5fc66ee0d74eb1f.tar.gz |
Mobile: pass trip-ids through QML, not formatted pointers
The section heading in the QtQuick ListView has to be a string.
Therefore, we passed a pointer formatted using hexadecimal notation.
Later, that was converted back without being checked.
A very scary proposition, so let's pass unique integer trip-id instead.
This means that on converting back we have to scan the trip table,
but that is a very minor cost comsidering to the gained robustness.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/devicedetails.cpp')
0 files changed, 0 insertions, 0 deletions