From 6801c68c2dfa68436a7d8a65c4baea157decf3f2 Mon Sep 17 00:00:00 2001 From: Danilo Cesar Lemes de Paula Date: Wed, 26 Feb 2014 13:37:13 -0300 Subject: [PATCH] reseting progress_bar_text for new downloads if the user tries to redownload something from its dive computer the interface will be stuck since progress_bar_text won't be empty in the second run. Even if I don't really like this idea of that value being changed by downloadfromdivecomputer.cpp and libdivecomputer.c, that value needs to be reset by someone. Signed-off-by: Danilo Cesar Lemes de Paula Signed-off-by: Dirk Hohndel --- qt-ui/downloadfromdivecomputer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp index d8a49e7ad..69d42d930 100644 --- a/qt-ui/downloadfromdivecomputer.cpp +++ b/qt-ui/downloadfromdivecomputer.cpp @@ -51,6 +51,8 @@ DownloadFromDCWidget::DownloadFromDCWidget(QWidget* parent, Qt::WindowFlags f) : ui.progressBar->setMinimum(0); ui.progressBar->setMaximum(100); + progress_bar_text = ""; + fill_device_list(); fill_computer_list();