on xenial help sign in
simplify
5d86cc3Michael Zanetti
qml/Launcher/Drawer.qml+5−5
@@ -95,11 +95,11 @@ FocusScope {
95 KeyNavigation.down: sections
95 KeyNavigation.down: sections
96
96
97 onAccepted: {
97 onAccepted: {
98+ if (searchField.displayText != "" && listLoader.item) {
98− // In case there is no currentItem (it might have been filtered away) lets reset it to the first item
99+ // In case there is no currentItem (it might have been filtered away) lets reset it to the first item
99− if (listLoader.item && !listLoader.item.currentItem) {
100+ if (!listLoader.item.currentItem) {
100− listLoader.item.currentIndex = 0;
101+ listLoader.item.currentIndex = 0;
101− }
102+ }
102− if (searchField.displayText != "" && listLoader.item && listLoader.item.currentItem) {
103 root.applicationSelected(listLoader.item.getFirstAppId());
103 root.applicationSelected(listLoader.item.getFirstAppId());
104 }
104 }
105 }
105 }