summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-mobile/qml/DiveDetailsView.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/qt-mobile/qml/DiveDetailsView.qml b/qt-mobile/qml/DiveDetailsView.qml
index 7e678c5c3..56d524f1f 100644
--- a/qt-mobile/qml/DiveDetailsView.qml
+++ b/qt-mobile/qml/DiveDetailsView.qml
@@ -111,6 +111,7 @@ Item {
QMLProfile {
id: qmlProfile
+ visible: !dive.noDive
Layout.fillWidth: true
Layout.preferredHeight: Layout.minimumHeight
Layout.minimumHeight: width * 0.75
@@ -125,6 +126,15 @@ Item {
anchors.fill: parent
}
}
+ MobileComponents.Label {
+ id: noProfile
+ visible: dive.noDive
+ Layout.fillWidth: true
+ Layout.columnSpan: 4
+ Layout.margins: MobileComponents.Units.gridUnit
+ horizontalAlignment: Text.AlignHCenter
+ text: "No profile show for empty dive"
+ }
}
GridLayout {
id: bottomLayout