mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-10-31 13:10:19 -04:00 
			
		
		
		
	Rolled up sample download progress only reflects selected items
This commit is contained in:
		
							parent
							
								
									ddbf37cbd2
								
							
						
					
					
						commit
						232773c582
					
				| @ -296,14 +296,15 @@ void Directory::update (QTreeWidgetItem * item) | ||||
|       int counted {0}; | ||||
| 
 | ||||
|       // get the count, progress and size of children
 | ||||
|       int items {recurse_children (item, &counted, &bytes, &max)}; | ||||
|       // int items {recurse_children (item, &counted, &bytes, &max)};
 | ||||
|       recurse_children (item, &counted, &bytes, &max); | ||||
| 
 | ||||
|       // estimate size of items not yet downloaded as average of
 | ||||
|       // those actually present
 | ||||
|       if (counted) | ||||
|         { | ||||
|           max += (items - counted) * max / counted; | ||||
|         } | ||||
|       // if (counted)
 | ||||
|       //   {
 | ||||
|       //     max += (items - counted) * max / counted;
 | ||||
|       //   }
 | ||||
| 
 | ||||
|       // save as our progress
 | ||||
|       item->setData (1, Qt::UserRole, max); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user