summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-30 14:03:31 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-01 11:35:39 -0800
commitf503e5a9c2f8056192faca4f2e1e7ad00d6293c7 (patch)
tree9e09bfabc727b19b7b4546a24c6fb1e1c774b5de /mobile-widgets/qml
parent685403ff4723c42e5e89080b20f4700de1dc5566 (diff)
downloadsubsurface-f503e5a9c2f8056192faca4f2e1e7ad00d6293c7.tar.gz
mobile/UI: avoid pointless warnings
These can create quite a bit of noise in the log. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/DiveList.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index 0806a8bee..3e51a771b 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -47,8 +47,8 @@ Kirigami.ScrollablePage {
padding: 0
supportsMouseEvents: true
anchors {
- left: parent.left
- right: parent.right
+ left: parent ? parent.left : undefined
+ right: parent ? parent.right : undefined
}
height: isTrip ? 1 + 8 * Kirigami.Units.smallSpacing : 11 * Kirigami.Units.smallSpacing // delegateInnerItem.height