From 394482e63a6866a479eea56f9316c2615c44a7a2 Mon Sep 17 00:00:00 2001 From: Vasily Date: Fri, 1 Feb 2019 19:16:18 +0100 Subject: [PATCH] Fix regression in profile popups Without the public ids on the pop ups other buttons that used the buttons did not work. --- src/res/qml/audio_page/AudioPage.qml | 5 ++--- .../qml/audio_page/dialog_boxes/AudioNewProfileDialog.qml | 8 ++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/res/qml/audio_page/AudioPage.qml b/src/res/qml/audio_page/AudioPage.qml index 9c965c3..25f499e 100644 --- a/src/res/qml/audio_page/AudioPage.qml +++ b/src/res/qml/audio_page/AudioPage.qml @@ -29,9 +29,11 @@ MyStackViewPage { } PttNewProfileDialog { + id: pttNewProfileDialog } AudioNewProfileDialog { + id: audioNewProfileDialog } content: ColumnLayout { @@ -249,9 +251,6 @@ MyStackViewPage { onPttRightControllerEnabledChanged: { audioPttRightControllerToggle.checked = AudioTabController.pttRightControllerEnabled } - onAudioProfileDefaultChanged: { - audioDefaultProfileToggle.checked = AudioTabController.audioProfileDefault - } onPttProfilesUpdated: { reloadPttProfiles() } diff --git a/src/res/qml/audio_page/dialog_boxes/AudioNewProfileDialog.qml b/src/res/qml/audio_page/dialog_boxes/AudioNewProfileDialog.qml index af227b3..30f59aa 100644 --- a/src/res/qml/audio_page/dialog_boxes/AudioNewProfileDialog.qml +++ b/src/res/qml/audio_page/dialog_boxes/AudioNewProfileDialog.qml @@ -6,6 +6,7 @@ import "../.." //common imports MyDialogOkCancelPopup { id: audioNewProfileDialog + property alias defaultProfileToggle: test.audioDefaultProfileToggle.checked dialogTitle: "Create New Audio Profile" dialogWidth: 600 dialogHeight: 300 @@ -56,6 +57,13 @@ MyDialogOkCancelPopup { } } } + Connections { + target: AudioTabController + onAudioProfileDefaultChanged: { + defaultProfileToggle = AudioTabController.audioProfileDefault + } + } + function openPopup() { audioNewProfileName.text = "" open()