diff options
author | jan Iversen <jani@apache.org> | 2018-06-17 16:04:51 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-06-18 06:37:01 +0900 |
commit | a24f0d310792d0052064c5323b235591ff56efd9 (patch) | |
tree | 9e51ff9f9fef74c0d3e92fe8bc4e47273dbd5429 /mobile-widgets/qml | |
parent | 22b695dd7126d3496de85fd2689c352a20fcdc40 (diff) | |
download | subsurface-a24f0d310792d0052064c5323b235591ff56efd9.tar.gz |
mobile: revert e993d4f005e62c12765e2e45342ecf840476e3bf
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>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r-- | mobile-widgets/qml/DiveDetailsView.qml | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/mobile-widgets/qml/DiveDetailsView.qml b/mobile-widgets/qml/DiveDetailsView.qml index 3237fe6f6..bb7a10019 100644 --- a/mobile-widgets/qml/DiveDetailsView.qml +++ b/mobile-widgets/qml/DiveDetailsView.qml @@ -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(); } } } |