diff options
author | Danilo Cesar Lemes de Paula <danilo.eu@gmail.com> | 2014-02-26 13:37:13 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-26 09:00:19 -0800 |
commit | 6801c68c2dfa68436a7d8a65c4baea157decf3f2 (patch) | |
tree | 918294707bb92872a3da04e1f48101943f94d54a /qt-ui/downloadfromdivecomputer.cpp | |
parent | 0e6d893daed6eef53263ddafbc2f1d6e0e29da26 (diff) | |
download | subsurface-6801c68c2dfa68436a7d8a65c4baea157decf3f2.tar.gz |
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 <danilo.eu@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.cpp')
-rw-r--r-- | qt-ui/downloadfromdivecomputer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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(); |