Uemis patch : make sure force download is unchecked after the first round of loading dives

Guido Lerch guido.lerch at gmail.com
Wed Sep 16 11:32:37 PDT 2015


-- 
Best regards,
Guido
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150916/c58637bb/attachment.html>
-------------- next part --------------
From 6231c844fc1eb15373a506ec3e31108df38b55bb Mon Sep 17 00:00:00 2001
From: glerch <guido.lerch at gmail.com>
Date: Wed, 16 Sep 2015 20:29:44 +0200
Subject: [PATCH 6/6] UEMIS-uncheck the force download

This changes assures we uncheck the forcedownload flag after the
first round of reading to assure the uemis downloader doesnt go
in cyrcles.

Please check if this patch has any negative impact on
other computers.

Signed-off-by: glerch <guido.lerch at gmail.com>
---
 qt-ui/downloadfromdivecomputer.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp
index 7e18dae..d9d0dc9 100644
--- a/qt-ui/downloadfromdivecomputer.cpp
+++ b/qt-ui/downloadfromdivecomputer.cpp
@@ -443,6 +443,9 @@ void DownloadFromDCWidget::onDownloadThreadFinished()
 	}
 	ui.downloadCancelRetryButton->setText(tr("Retry"));
 	ui.downloadCancelRetryButton->setEnabled(true);
+	// make sure we uncheck this flag otherwise the UEMIS is going in cyrcles
+	// if we get here the download table should have existing dives anyway
+	ui.forceDownload->setChecked(false);
 	// regardless, if we got dives, we should show them to the user
 	if (downloadTable.nr) {
 		diveImportedModel->setImportedDivesIndexes(0, downloadTable.nr - 1);
-- 
1.9.5 (Apple Git-50.3)



More information about the subsurface mailing list