Apply expandedIndex on delegate creation
bug #1213033
commit7645fa82fe99ac6b6b5adc82b6cf8c7247e8b608
authorAlbert Astals <albert.astals@canonical.com>
dateMon 26 Aug 2013, 14:58 (13 years ago)
parentbdd5cca
Dash/GenericScopeView.qml+6
@@ -80,6 +80,12 @@ ScopeView {
8080 item.model = results
8181 }
8282 item.objectName = categoryId
83+ if (item.expandable) {
84+ var shouldFilter = index != categoryView.expandedIndex;
85+ if (shouldFilter != item.filter) {
86+ item.filter = shouldFilter;
87+ }
88+ }
8389 }
8490
8591 Connections {