on xenial help sign in
fix QML warnings
a93adb0Lukáš Tinkl
qml/Wizard/Pages/45-timezone.qml+5−5
@@ -48,19 +48,19 @@ LocalComponents.Page {
48
48
49 Label {
49 Label {
50 id: cityLabel
50 id: cityLabel
51− text: tzData.city
51+ text: !!tzData ? tzData.city : ""
52 anchors.left: parent.left
52 anchors.left: parent.left
53 anchors.top: parent.top
53 anchors.top: parent.top
54 }
54 }
55 Label {
55 Label {
56 id: timeLabel
56 id: timeLabel
57− text: tzData.time
57+ text: !!tzData ? tzData.time : ""
58 anchors.right: parent.right
58 anchors.right: parent.right
59 anchors.top: parent.top
59 anchors.top: parent.top
60 }
60 }
61 Label {
61 Label {
62 id: abbrevLabel
62 id: abbrevLabel
63− text: tzData.abbreviation
63+ text: !!tzData ? tzData.abbreviation : ""
64 anchors.right: parent.right
64 anchors.right: parent.right
65 anchors.top: timeLabel.bottom
65 anchors.top: timeLabel.bottom
66 }
66 }
@@ -106,8 +106,8 @@ LocalComponents.Page {
106
106
107 delegate: Loader {
107 delegate: Loader {
108 id: loader
108 id: loader
109− anchors.left: parent.left
109+ anchors.left: !!parent ? parent.left : undefined
110− anchors.right: parent.right
110+ anchors.right: !!parent ? parent.right : undefined
111 height: units.gu(6)
111 height: units.gu(6)
112 asynchronous: true
112 asynchronous: true
113 sourceComponent: tzComponent
113 sourceComponent: tzComponent