From 0060f57b634236aff626f708cb239ba82a97b6ab Mon Sep 17 00:00:00 2001 From: "vladimir.kuznetsov" Date: Sat, 19 Aug 2023 13:12:54 +0500 Subject: [PATCH] fixed selection of connection type on PageShare when changing protocol --- client/ui/qml/Pages2/PageShare.qml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/client/ui/qml/Pages2/PageShare.qml b/client/ui/qml/Pages2/PageShare.qml index 065bda12e..28f5ca066 100644 --- a/client/ui/qml/Pages2/PageShare.qml +++ b/client/ui/qml/Pages2/PageShare.qml @@ -338,14 +338,18 @@ PageType { headerText: qsTr("Connection format") listView: ListViewWithRadioButtonType { - id: exportTypeListView + onCurrentIndexChanged: { + console.log(currentIndex) + exportTypeSelector.currentIndex = currentIndex + exportTypeSelector.text = selectedText + } rootWidth: root.width - imageSource: "qrc:/images/controls/chevron-right.svg" + imageSource: "qrc:/images/controls/check.svg" model: root.connectionTypesModel - currentIndex: exportTypeSelector.currentIndex + currentIndex: 0 clickedFunction: function() { exportTypeSelector.text = selectedText