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>
This commit is contained in:
Danilo Cesar Lemes de Paula 2014-02-26 13:37:13 -03:00 committed by Dirk Hohndel
parent 0e6d893dae
commit 6801c68c2d

View file

@ -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();