on xenial help sign in
Fix some qml warnings
commitec00b9e555dcb02f3f9009d596067317bee42ec5 authorAlbert Astals <albert.astals@canonical.com> dateFri 10 Oct 2014, 12:37 (12 years ago) parent6f6423a
2 files changed+2−2
qml/Dash/GenericScopeView.qml+1−1 qml/Dash/Previews/PreviewTextSummary.qml+1−1
qml/Dash/GenericScopeView.qml+1−1
@@ -237,7 +237,7 @@ FocusScope {
237237 CardTool {
238238 id: cardTool
239239 objectName: "cardTool"
240− count: results.count
240+ count: results ? results.count : 0
241241 template: model.renderer
242242 components: model.components
243243 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 {