mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile: revert e993d4f005
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:
parent
22b695dd71
commit
a24f0d3107
1 changed files with 2 additions and 7 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue