~ci-train-bot/unity8/unity8-ubuntu-zesty-2663

« back to all changes in this revision

Viewing changes to qml/Launcher/Drawer.qml

  • Committer: Nick Dedekind
  • Date: 2017-02-23 11:02:42 UTC
  • mfrom: (2833.1.1 unity8)
  • mto: This revision was merged to the branch mainline in revision 2892.
  • Revision ID: nick.dedekind@canonical.com-20170223110242-k6oaord2re9nfw33
merged trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
                KeyNavigation.down: sections
96
96
 
97
97
                onAccepted: {
98
 
                    if (searchField.displayText != "" && listLoader.item && listLoader.item.currentItem) {
 
98
                    if (searchField.displayText != "" && listLoader.item) {
 
99
                        // In case there is no currentItem (it might have been filtered away) lets reset it to the first item
 
100
                        if (!listLoader.item.currentItem) {
 
101
                            listLoader.item.currentIndex = 0;
 
102
                        }
99
103
                        root.applicationSelected(listLoader.item.getFirstAppId());
100
104
                    }
101
105
                }
238
242
                        source: sortProxyModel
239
243
                        group: AppDrawerProxyModel.GroupByAll
240
244
                        sortBy: AppDrawerProxyModel.SortByUsage
 
245
                        dynamicSortFilter: false
241
246
                    }
242
247
 
243
248
                    delegate: UbuntuShape {
287
292
                        source: sortProxyModel
288
293
                        sortBy: AppDrawerProxyModel.SortByAToZ
289
294
                        group: AppDrawerProxyModel.GroupByAToZ
 
295
                        dynamicSortFilter: false
290
296
                    }
291
297
 
292
298
                    delegate: UbuntuShape {
320
326
                                id: categoryModel
321
327
                                source: sortProxyModel
322
328
                                filterLetter: model.letter
 
329
                                dynamicSortFilter: false
323
330
                            }
324
331
                            delegateWidth: units.gu(8)
325
332
                            delegateHeight: units.gu(10)