on xenial help sign in
Fix category overriding.
0e9c4cdMichał Sawicz
qml/ScopeTool.qml+3−1
@@ -19,6 +19,7 @@ import Ubuntu.Components 0.1
19import Ubuntu.Components.Popups 0.1
19import Ubuntu.Components.Popups 0.1
20import Utils 0.1
20import Utils 0.1
21import Unity 0.1
21import Unity 0.1
22+import "Components"
22import "Dash"
23import "Dash"
23
24
24Rectangle {
25Rectangle {
@@ -64,6 +65,7 @@ Rectangle {
64 id: dashContent
65 id: dashContent
65
66
66 model: filteredScopes
67 model: filteredScopes
68+ searchHistory: SearchHistoryModel { }
67 property Scope scope: scopes.get(currentIndex)
69 property Scope scope: scopes.get(currentIndex)
68
70
69 anchors {
71 anchors {
@@ -136,7 +138,7 @@ Rectangle {
136 width: parent.width
138 width: parent.width
137 autoSize: true
139 autoSize: true
138 readOnly: true
140 readOnly: true
139− text: categorySelector.selectedItem > 0 && categorySelector.selectedItem.template
141+ text: categorySelector.selectedItem && categorySelector.selectedItem.template
140 }
142 }
141
143
142 Button {
144 Button {