diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-09-26 10:52:44 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-09-27 16:33:37 -0700 |
commit | f0fc1f3a56d7b4ace484d79d43089bceb64de777 (patch) | |
tree | 699f1015b246835c6000e58c03066ba34da4677b /mobile-widgets/qml/DiveDetailsView.qml | |
parent | 9ae7040a91c3e3e0606d7abe085ef6da47efd6d2 (diff) | |
download | subsurface-f0fc1f3a56d7b4ace484d79d43089bceb64de777.tar.gz |
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'mobile-widgets/qml/DiveDetailsView.qml')
-rw-r--r-- | mobile-widgets/qml/DiveDetailsView.qml | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } } |