mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	QlmManager: fix cylinderInit
Cylinder init should return all cylinders not only the ones present in the logbook. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
		
							parent
							
								
									ae70a751c7
								
							
						
					
					
						commit
						a026d8d889
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -1612,6 +1612,14 @@ QStringList QMLManager::cylinderInit() const | |||
| 				cylinders << d->cylinder[j].type.description; | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
| 	for (unsigned long ti = 0; ti < MAX_TANK_INFO && tank_info[ti].name != NULL; ti++) { | ||||
| 		QString cyl = tank_info[ti].name; | ||||
| 		if (cyl == "") | ||||
| 			continue; | ||||
| 		cylinders << cyl; | ||||
| 	} | ||||
| 
 | ||||
| 	cylinders.removeDuplicates(); | ||||
| 	cylinders.sort(); | ||||
| 	return cylinders; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue