mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:13:25 +00:00
Download from divecomputer: stop timer on error
If we run into an error during the download, stop the timer that triggers the update to the progressbar. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ed09b35dcf
commit
0bd02bf1f0
1 changed files with 1 additions and 1 deletions
|
@ -188,8 +188,8 @@ void DownloadFromDCWidget::updateState(states state)
|
|||
|
||||
// got an error
|
||||
else if (state == ERROR) {
|
||||
timer->stop();
|
||||
QMessageBox::critical(this, TITLE_OR_TEXT(tr("Error"), this->thread->error), QMessageBox::Ok);
|
||||
|
||||
markChildrenAsEnabled();
|
||||
ui.progressBar->hide();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue