mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +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
 | 
						// got an error
 | 
				
			||||||
	else if (state == ERROR) {
 | 
						else if (state == ERROR) {
 | 
				
			||||||
 | 
							timer->stop();
 | 
				
			||||||
		QMessageBox::critical(this, TITLE_OR_TEXT(tr("Error"), this->thread->error), QMessageBox::Ok);
 | 
							QMessageBox::critical(this, TITLE_OR_TEXT(tr("Error"), this->thread->error), QMessageBox::Ok);
 | 
				
			||||||
 | 
					 | 
				
			||||||
		markChildrenAsEnabled();
 | 
							markChildrenAsEnabled();
 | 
				
			||||||
		ui.progressBar->hide();
 | 
							ui.progressBar->hide();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue