summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mobile-widgets/qml/DiveDetailsView.qml9
1 files changed, 7 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DiveDetailsView.qml b/mobile-widgets/qml/DiveDetailsView.qml
index bb7a10019..3237fe6f6 100644
--- a/mobile-widgets/qml/DiveDetailsView.qml
+++ b/mobile-widgets/qml/DiveDetailsView.qml
@@ -217,6 +217,13 @@ Item {
border.color: subsurfaceTheme.primaryColor
anchors.fill: parent
}
+
+ onVisibleChanged: {
+ if (visible) {
+ qmlProfile.diveId = model.dive.id;
+ qmlProfile.update();
+ }
+ }
}
Controls.Label {
id: noProfile
@@ -397,8 +404,6 @@ Item {
}
Component.onCompleted: {
qmlProfile.setMargin(Kirigami.Units.smallSpacing)
- qmlProfile.diveId = model.dive.id;
- qmlProfile.update();
}
}
}