diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-02-15 06:03:54 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-15 19:38:11 -0800 |
commit | 55c595f8be46bace28447adb57d75234cb9c2075 (patch) | |
tree | eb3efb57a913c2d3187c576bc2f5ce55d70282fe | |
parent | a15485874153336f416889c9cd31d620e89f1bd0 (diff) | |
download | subsurface-55c595f8be46bace28447adb57d75234cb9c2075.tar.gz |
Initialize device_data_t datav4.0.3
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 <dirk@hohndel.org>
-rw-r--r-- | qt-ui/downloadfromdivecomputer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp index 81bc04309..21cf2302b 100644 --- a/qt-ui/downloadfromdivecomputer.cpp +++ b/qt-ui/downloadfromdivecomputer.cpp @@ -77,6 +77,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::runDialog() |