summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-06-17 16:04:51 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-18 06:37:01 +0900
commita24f0d310792d0052064c5323b235591ff56efd9 (patch)
tree9e51ff9f9fef74c0d3e92fe8bc4e47273dbd5429 /mobile-widgets
parent22b695dd7126d3496de85fd2689c352a20fcdc40 (diff)
downloadsubsurface-a24f0d310792d0052064c5323b235591ff56efd9.tar.gz
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')
-rw-r--r--mobile-widgets/qml/DiveDetailsView.qml9
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();
}
}
}