Launch navigation@0.1 when pressing NAVIGATION button
[staging/HomeScreen.git] / HomeScreen / qml / ShortcutArea.qml
index d9931cb..9e71a94 100644 (file)
@@ -40,7 +40,7 @@ Item {
         }
         ListElement {
             name: 'Navigation'
-            application: 'controls@0.1'
+            application: 'navigation@0.1'
         }
     }
 
@@ -65,11 +65,16 @@ Item {
                         layoutHandler.hideAppLayer()
                     }
                     else {
-                        applicationArea.visible = true
-                        appLauncherAreaLauncher.visible = false
                         pid = launcher.launch(model.application)
-                        layoutHandler.makeMeVisible(pid)
-                        layoutHandler.showAppLayer()
+                        if (1 < pid) {
+                            applicationArea.visible = true
+                            appLauncherAreaLauncher.visible = false
+                            layoutHandler.makeMeVisible(pid)
+                            layoutHandler.showAppLayer(pid)
+                        }
+                        else {
+                            console.warn("app cannot be launched!")
+                        }
                     }
                 }
             }