summaryrefslogtreecommitdiffstats
path: root/core/downloadfromdcthread.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2017-10-24 00:27:52 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-26 20:45:25 +0200
commit43a5cb3962e657f6a6dcc7a3abdc6c6ea3e008f9 (patch)
tree29244e4f1c09fcfd976cbc672581036599104f94 /core/downloadfromdcthread.cpp
parent6852c3b039e5fb5b2f0330cb097f43af4f7f1ea2 (diff)
downloadsubsurface-43a5cb3962e657f6a6dcc7a3abdc6c6ea3e008f9.tar.gz
Clear error string when starting dive computer dowload.
Fixes minor interface inconsistency: After a failed download, the error message was also shown on subsequent successful downloads. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/downloadfromdcthread.cpp')
-rw-r--r--core/downloadfromdcthread.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/downloadfromdcthread.cpp b/core/downloadfromdcthread.cpp
index a53d39c42..e01de2881 100644
--- a/core/downloadfromdcthread.cpp
+++ b/core/downloadfromdcthread.cpp
@@ -43,6 +43,7 @@ void DownloadThread::run()
Q_ASSERT(internalData->download_table != nullptr);
const char *errorText;
import_thread_cancelled = false;
+ error.clear();
if (!strcmp(internalData->vendor, "Uemis"))
errorText = do_uemis_import(internalData);
else