diff --git a/app/gui/AppView.qml b/app/gui/AppView.qml index 8f2a0f9d..d27dcd73 100644 --- a/app/gui/AppView.qml +++ b/app/gui/AppView.qml @@ -350,7 +350,7 @@ CenteredGridView { function quitApp() { var component = Qt.createComponent("QuitSegue.qml") - var params = {"appName": appName, "quitRunningAppFn": appModel.quitRunningApp} + var params = {"appName": appName, "quitRunningAppFn": () => appModel.quitRunningApp()} if (segueToStream) { // Store the session and app name if we're going to stream after // successfully quitting the old app. diff --git a/app/gui/CliStartStreamSegue.qml b/app/gui/CliStartStreamSegue.qml index 3bb2e95f..aba2abec 100644 --- a/app/gui/CliStartStreamSegue.qml +++ b/app/gui/CliStartStreamSegue.qml @@ -85,7 +85,7 @@ Item { function quitApp() { var component = Qt.createComponent("QuitSegue.qml") - var params = {"appName": appName, "quitRunningAppFn": launcher.quitRunningApp} + var params = {"appName": appName, "quitRunningAppFn": () => launcher.quitRunningApp()} stackView.push(component.createObject(stackView, params)) }