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
@ -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…
x
Reference in New Issue
Block a user