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:
Jocke 2018-07-28 17:45:01 +02:00 committed by Dirk Hohndel
parent ae70a751c7
commit a026d8d889

View file

@ -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;