From 31aa93857a794078c6a43e4a5b9808a95f13a04e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 15 Feb 2014 06:03:54 -0800 Subject: Initialize device_data_t data If the user never clicks on the log and dump checkboxes (and that's what we expect to be the case by default), then the log / dump flags (and filenames) were never initialized. I am reasonably certain this will close the following three bugs, that all show the same symptom: they behave as if libdivecomputer dump was set, even if it wasn't. Fixes: #426 Fixes: #431 Fixes: #435 Signed-off-by: Dirk Hohndel --- qt-ui/downloadfromdivecomputer.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui') diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp index 5dc38ca0a..3c098cec3 100644 --- a/qt-ui/downloadfromdivecomputer.cpp +++ b/qt-ui/downloadfromdivecomputer.cpp @@ -76,6 +76,7 @@ DownloadFromDCWidget::DownloadFromDCWidget(QWidget* parent, Qt::WindowFlags f) : timer->setInterval(200); connect(timer, SIGNAL(timeout()), this, SLOT(updateProgressBar())); updateState(INITIAL); + memset(&data, 0, sizeof(data)); } void DownloadFromDCWidget::updateProgressBar() -- cgit v1.2.3-70-g09d2