try a sectionscroller only if model.get is avail

This commit is contained in:
Marco Martin 2012-10-22 15:03:22 +02:00
parent eadae554b8
commit 8f6eb3cc7f

View File

@ -88,6 +88,7 @@ Item {
verticalScrollBar = verticalScrollBarComponent.createObject(root)
//from normal to section
} else if (flickableItem.section && flickableItem.section.property &&
flickableItem.model.get !== undefines &&
(!verticalScrollBar || verticalScrollBar.orientation !== undefined)) {
if (verticalScrollBar) verticalScrollBar.destroy()
verticalScrollBar = sectionScrollerComponent.createObject(root)