summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-10 08:09:42 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-10 08:09:42 +0100
commit0e3a24c3c058e91b3743a14eaa61ead4cb15c4ea (patch)
treeda8680f3f4ef4e990a3f2efc1a9c2be9e1a33806 /qt-ui
parent0d4fb44c189cd91e937aff5e2e7a30691249a832 (diff)
downloadsubsurface-0e3a24c3c058e91b3743a14eaa61ead4cb15c4ea.tar.gz
Reset libdivecomuter import canceled state
Once the process got cancelled once we never reset the flag. Fixes #82 Initial-fix-by: Jef Driesen Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp
index db46b3b72..e1d761e85 100644
--- a/qt-ui/downloadfromdivecomputer.cpp
+++ b/qt-ui/downloadfromdivecomputer.cpp
@@ -335,6 +335,7 @@ static QString str_error(const char *fmt, ...)
void DownloadThread::run()
{
const char *error;
+ import_thread_cancelled = false;
if (!strcmp(data->vendor, "Uemis"))
error = do_uemis_import(data->devname, data->force_download);
else