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>
This commit is contained in:
Berthold Stoeger 2019-09-26 10:52:44 +02:00 committed by Dirk Hohndel
parent 9ae7040a91
commit f0fc1f3a56

View file

@ -397,7 +397,7 @@ Item {
}
Component.onCompleted: {
qmlProfile.setMargin(Kirigami.Units.smallSpacing)
qmlProfile.diveId = model.dive.id;
qmlProfile.diveId = model.id;
qmlProfile.update();
}
}