diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-05-28 17:48:56 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-05-29 08:57:04 -0700 |
commit | 88738ede30ce9c14d54758b45c48e492bd061ed4 (patch) | |
tree | c5ab2b9a0b26d683b425835227172ccd0c26daf2 | |
parent | 8d42d33f93c2eec54013c984cd902f094eb9d25f (diff) | |
download | subsurface-88738ede30ce9c14d54758b45c48e492bd061ed4.tar.gz |
mobile: dive_table.preexisting not set importing from mobile
Searching why the mobile app also downloads pre existing dives, it appears
that in the mobile app, the preexisting attribute is 0, where it should be the
number of dives before the download. This is easily solved by adding the correct
setting on the download thread. This solves the issue of downloading pre existing
dives.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
-rw-r--r-- | core/downloadfromdcthread.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/downloadfromdcthread.cpp b/core/downloadfromdcthread.cpp index 3c3e0df0a..36829ad1b 100644 --- a/core/downloadfromdcthread.cpp +++ b/core/downloadfromdcthread.cpp @@ -29,6 +29,7 @@ void DownloadThread::run() downloadTable.nr = 0; qDebug() << "Starting the thread" << downloadTable.nr; + dive_table.preexisting = dive_table.nr; Q_ASSERT(internalData->download_table != nullptr); const char *errorText; |