X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=launcher%2Fqml%2FLauncher.qml;fp=launcher%2Fqml%2FLauncher.qml;h=6d55271d7126d57419ba0d9e6fac9af9186ddd42;hb=471a8288f833334e38f3d999c8921c8585280dc9;hp=31b1f3d54222bff765a0fac9131ed5f4317f46f6;hpb=9430d170c235ff75268db06d1ba32692dea0a65f;p=apps%2Flauncher.git diff --git a/launcher/qml/Launcher.qml b/launcher/qml/Launcher.qml index 31b1f3d..6d55271 100644 --- a/launcher/qml/Launcher.qml +++ b/launcher/qml/Launcher.qml @@ -69,9 +69,13 @@ ApplicationWindow { y: 264 onPressAndHold: currentId = applicationModel.id(newIndex = index) onReleased: { + if(loc.index < 0) { + return + } if (currentId === '') { pid = launcher.launch(applicationModel.id(loc.index)) if (1 < pid) { + homescreenHandler.tapShortcut(applicationModel.name(loc.index)) } else { console.warn("app cannot be launched!") @@ -79,7 +83,6 @@ ApplicationWindow { } else { currentId = '' } - homescreenHandler.tapShortcut(applicationModel.name(loc.index)) } onPositionChanged: { if (loc.currentId === '') return