From bc580c9aaaa4cc859ed6a5283c9bb4df3a0d85a3 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 29 Mar 2019 23:20:43 -0700 Subject: [PATCH] Ensure SdlGamepadKeyNavigation is only re-enabled after the sessionFinished() callback to avoid conflicts with SdlInputHandler --- app/gui/StreamSegue.qml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/gui/StreamSegue.qml b/app/gui/StreamSegue.qml index 220b564f..45814476 100644 --- a/app/gui/StreamSegue.qml +++ b/app/gui/StreamSegue.qml @@ -21,8 +21,8 @@ Item { function stageFailed(stage, errorCode) { + // Display the error dialog after Session::exec() returns errorDialog.text = "Starting " + stage + " failed: Error " + errorCode - errorDialog.open() } function connectionStarted() @@ -66,6 +66,9 @@ Item { function sessionFinished() { + // Enable GUI gamepad usage now + SdlGamepadKeyNavigation.enable() + if (quitAfter) { if (errorDialog.text) { // Quit when the error dialog is acknowledged @@ -178,10 +181,6 @@ Item { if (!visible && quitAfter) { Qt.quit() } - else { - // Enable GUI gamepad usage now - SdlGamepadKeyNavigation.enable() - } } onHelp: {