From 43a5cb3962e657f6a6dcc7a3abdc6c6ea3e008f9 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 24 Oct 2017 00:27:52 +0200 Subject: 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 --- core/downloadfromdcthread.cpp | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3-70-g09d2