mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Don't show previous dive computer text
There were situations when the last text was still shown. E.g. when the current file was closed and then a new dive was imported from CSV. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									4487e13e15
								
							
						
					
					
						commit
						6aee901f6f
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -626,6 +626,8 @@ void ProfileWidget2::plotDive(struct dive *d, bool force) | ||||||
| 	int nr; | 	int nr; | ||||||
| 	if ((nr = number_of_computers(&displayed_dive)) > 1) | 	if ((nr = number_of_computers(&displayed_dive)) > 1) | ||||||
| 		dcText += tr(" (#%1 of %2)").arg(dc_number + 1).arg(nr); | 		dcText += tr(" (#%1 of %2)").arg(dc_number + 1).arg(nr); | ||||||
|  | 	if (dcText.isEmpty()) | ||||||
|  | 		dcText = tr("Unknown dive computer"); | ||||||
| 	diveComputerText->setText(dcText); | 	diveComputerText->setText(dcText); | ||||||
| 	if (MainWindow::instance()->filesFromCommandLine() && animSpeedBackup != 0) { | 	if (MainWindow::instance()->filesFromCommandLine() && animSpeedBackup != 0) { | ||||||
| 		prefs.animation_speed = animSpeedBackup; | 		prefs.animation_speed = animSpeedBackup; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue