on xenial help sign in
Access the proper template variable
commit3bde05b3d3af8d875c3dd616d25d31ceea691270 authorAlbert Astals <albert.astals@canonical.com> dateTue 11 Mar 2014, 16:33 (13 years ago) parent43ad863
2 files changed+2−2
qml/Dash/CardFilterGrid.qml+1−1 qml/Dash/DashRenderer.qml+1−1
qml/Dash/CardFilterGrid.qml+1−1
@@ -24,7 +24,7 @@ DashFilterGrid {
2424 delegateWidth: cardTool.cardWidth
2525 delegateHeight: cardTool.cardHeight
2626 verticalSpacing: units.gu(1)
27− collapsedRowCount: Math.min(2, template && template["collapsed-rows"] || 2)
27+ collapsedRowCount: Math.min(2, cardTool && cardTool.template && template["collapsed-rows"] || 2)
2828
2929 delegate: Item {
3030 width: genericFilterGrid.cellWidth
qml/Dash/DashRenderer.qml+1−1
@@ -53,7 +53,7 @@ Item {
5353 /*!
5454 \brief CardTool component.
5555 */
56− property var cardTool
56+ property var cardTool: undefined
5757
5858 /// Emitted when the user clicked on an item
5959 /// @param index is the index of the clicked item