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