fix type & launch
commit40cd8c63340e5fa28764dad8cbb4b7e884b93b82
authorMichael Zanetti <michael.zanetti@canonical.com>
dateThu 26 Jan 2017, 15:44 (10 years ago)
parentfab6092
qml/Launcher/Drawer.qml+4
@@ -95,6 +95,10 @@ FocusScope {
9595 KeyNavigation.down: sections
9696
9797 onAccepted: {
98+ // 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+ listLoader.item.currentIndex = 0;
101+ }
98102 if (searchField.displayText != "" && listLoader.item && listLoader.item.currentItem) {
99103 root.applicationSelected(listLoader.item.getFirstAppId());
100104 }