on xenial help sign in
Fix some small qml warnings
16cc3a9Albert Astals
qml/Dash/GenericScopeView.qml+1−1
@@ -235,7 +235,7 @@ FocusScope {
235 CardTool {
235 CardTool {
236 id: cardTool
236 id: cardTool
237 objectName: "cardTool"
237 objectName: "cardTool"
238− count: results.count
238+ count: results ? results.count : 0
239 template: model.renderer
239 template: model.renderer
240 components: model.components
240 components: model.components
241 viewWidth: parent.width
241 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 {