mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Always set min/max sac in statistics tab
It just looks weird when they aren't set, just because you only selected one dive. Signed-off-by: Anton Lundin <glance@acc.umu.se>
This commit is contained in:
		
							parent
							
								
									0f80d07e4b
								
							
						
					
					
						commit
						1ec0d43e63
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -51,11 +51,11 @@ void TabDiveStatistics::updateData() | |||
| 	// ui->depthLimits->setAverage(get_depth_string(stats_selection.avg_depth, true));
 | ||||
| 
 | ||||
| 
 | ||||
| 	if (amount_selected > 1 && stats_selection.max_sac.mliter) | ||||
| 	if (stats_selection.max_sac.mliter) | ||||
| 		ui->sacLimits->setMaximum(get_volume_string(stats_selection.max_sac, true).append(tr("/min"))); | ||||
| 	else | ||||
| 		ui->sacLimits->setMaximum(""); | ||||
| 	if (amount_selected > 1 && stats_selection.min_sac.mliter) | ||||
| 	if (stats_selection.min_sac.mliter) | ||||
| 		ui->sacLimits->setMinimum(get_volume_string(stats_selection.min_sac, true).append(tr("/min"))); | ||||
| 	else | ||||
| 		ui->sacLimits->setMinimum(""); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue