mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Dive d/l selection UI: fix check if things were checked
Math is hard. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									847289605b
								
							
						
					
					
						commit
						17b9597f3e
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -584,8 +584,8 @@ void DiveImportedModel::removeUnused() { | |||
| 	beginRemoveRows(QModelIndex(), 0, rowCount()-1); | ||||
| 	endRemoveRows(); | ||||
| 
 | ||||
| 	for(int i = lastIndex; i >= firstIndex; i-- ){ | ||||
| 		if(!checkStates[firstIndex - i]) { | ||||
| 	for (int i = lastIndex; i >= firstIndex; i-- ) { | ||||
| 		if (!checkStates[i - firstIndex]) { | ||||
| 			delete_single_dive(i); | ||||
| 		} | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue