From f0fc1f3a56d7b4ace484d79d43089bceb64de777 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 26 Sep 2019 10:52:44 +0200 Subject: [PATCH] Mobile: Don't access dive-id via DiveObjectHelper There is already a role to do that. Query the model directly to avoid creating a full DiveHelperObject. Signed-off-by: Berthold Stoeger --- mobile-widgets/qml/DiveDetailsView.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile-widgets/qml/DiveDetailsView.qml b/mobile-widgets/qml/DiveDetailsView.qml index 1060f5246..8bcc2af94 100644 --- a/mobile-widgets/qml/DiveDetailsView.qml +++ b/mobile-widgets/qml/DiveDetailsView.qml @@ -397,7 +397,7 @@ Item { } Component.onCompleted: { qmlProfile.setMargin(Kirigami.Units.smallSpacing) - qmlProfile.diveId = model.dive.id; + qmlProfile.diveId = model.id; qmlProfile.update(); } }