From ff3aa7f46513101083f93b920b674a0253be2ad3 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Sat, 29 Jan 2022 13:10:20 +0100 Subject: [PATCH] Fix modbus baudrate selection --- nymea-app/ui/system/ModbusRtuAddMasterPage.qml | 2 +- nymea-app/ui/system/ModbusRtuReconfigureMasterPage.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nymea-app/ui/system/ModbusRtuAddMasterPage.qml b/nymea-app/ui/system/ModbusRtuAddMasterPage.qml index 350da7d0..c4c61b66 100644 --- a/nymea-app/ui/system/ModbusRtuAddMasterPage.qml +++ b/nymea-app/ui/system/ModbusRtuAddMasterPage.qml @@ -164,7 +164,7 @@ SettingsPageBase { ComboBox { id: baudRateComboBox Layout.minimumWidth: 250 - textRole: "text" + textRole: "value" enabled: !root.busy onActivated: console.log("Selected baud rate", currentText, model.get(currentIndex).value) model: serialPortBaudrateModel diff --git a/nymea-app/ui/system/ModbusRtuReconfigureMasterPage.qml b/nymea-app/ui/system/ModbusRtuReconfigureMasterPage.qml index b1c8eac3..ff6405d4 100644 --- a/nymea-app/ui/system/ModbusRtuReconfigureMasterPage.qml +++ b/nymea-app/ui/system/ModbusRtuReconfigureMasterPage.qml @@ -179,7 +179,7 @@ SettingsPageBase { id: baudRateComboBox Layout.minimumWidth: 250 enabled: !root.busy - textRole: "text" + textRole: "value" model: serialPortBaudrateModel onActivated: console.log("Selected baudrate", currentText, model.get(currentIndex).value) Component.onCompleted: {