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>
This commit is contained in:
Berthold Stoeger 2017-10-24 00:27:52 +02:00 committed by Dirk Hohndel
parent 6852c3b039
commit 43a5cb3962

View file

@ -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