Fix some small qml warnings
Approved by: Michael Terry
commit16cc3a946caa3a099c4713c754246ee435fa206d
authorAlbert Astals <albert.astals@canonical.com>
dateMon 13 Oct 2014, 15:41 (12 years ago)
parent19f98826fb1d13
qml/Dash/GenericScopeView.qml+1−1
@@ -235,7 +235,7 @@ FocusScope {
235235 CardTool {
236236 id: cardTool
237237 objectName: "cardTool"
238− count: results.count
238+ count: results ? results.count : 0
239239 template: model.renderer
240240 components: model.components
241241 viewWidth: parent.width
qml/Dash/Previews/PreviewTextSummary.qml+1−1
@@ -63,7 +63,7 @@ PreviewWidget {
6363 lineHeight: 1.2
6464 color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText
6565 opacity: .8
66− text: widgetData["text"]
66+ text: widgetData["text"] || ""
6767 wrapMode: Text.Wrap
6868
6969 Behavior on height {