summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-mobile/qmlmanager.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp
index a4cfd5fd4..8767cef93 100644
--- a/qt-mobile/qmlmanager.cpp
+++ b/qt-mobile/qmlmanager.cpp
@@ -714,8 +714,14 @@ QString QMLManager::getCylinder(QString diveId)
int dive_id = diveId.toInt();
struct dive *d = get_dive_by_uniq_id(dive_id);
QString cylinder;
- if (d)
- cylinder = d->cylinder[0].type.description;
+ if (d){
+ if (d->cylinder[1].type.description != NULL){
+ cylinder = "Multiple";
+ }
+ else {
+ cylinder = d->cylinder[0].type.description;
+ }
+ }
return cylinder;
}