on xenial help sign in
Fix some qml warnings
ec00b9eAlbert Astals
qml/Dash/GenericScopeView.qml+1−1
@@ -237,7 +237,7 @@ FocusScope {
237 CardTool {
237 CardTool {
238 id: cardTool
238 id: cardTool
239 objectName: "cardTool"
239 objectName: "cardTool"
240− count: results.count
240+ count: results ? results.count : 0
241 template: model.renderer
241 template: model.renderer
242 components: model.components
242 components: model.components
243 viewWidth: parent.width
243 viewWidth: parent.width
qml/Dash/Previews/PreviewTextSummary.qml+1−1
@@ -63,7 +63,7 @@ PreviewWidget {
63 lineHeight: 1.2
63 lineHeight: 1.2
64 color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText
64 color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText
65 opacity: .8
65 opacity: .8
66− text: widgetData["text"]
66+ text: widgetData["text"] || ""
67 wrapMode: Text.Wrap
67 wrapMode: Text.Wrap
68
68
69 Behavior on height {
69 Behavior on height {