aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp8
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;