The commit secured that plotDive was not called before actually being used.
However our (rather fragile) C++ qml interface did not work correctly (ony sometimes).

Revert the previous commit.

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-06-17 16:04:51 +02:00 committed by Dirk Hohndel
parent 22b695dd71
commit a24f0d3107

View file

@ -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();
}
}
}