diff options
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 2e3576596..1e62cf0ca 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -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; |