From 88738ede30ce9c14d54758b45c48e492bd061ed4 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Sun, 28 May 2017 17:48:56 +0200 Subject: 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 --- core/downloadfromdcthread.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'core/downloadfromdcthread.cpp') 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; -- cgit v1.2.3-70-g09d2