From 73d1456d32de5a404f589afa2fdb86ff54e372c8 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Mon, 3 Oct 2016 13:10:03 -0700 Subject: [PATCH] Small tweak to serial ui --- src/ui/preferences/SerialSettings.qml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/ui/preferences/SerialSettings.qml b/src/ui/preferences/SerialSettings.qml index e4863e58f..c7c09526a 100644 --- a/src/ui/preferences/SerialSettings.qml +++ b/src/ui/preferences/SerialSettings.qml @@ -50,11 +50,17 @@ Item { width: _firstColumn anchors.verticalCenter: parent.verticalCenter } + QGCLabel { + text: qsTr("No serial ports available"); + visible: QGroundControl.linkManager.serialPortStrings.length == 0 + } + QGCComboBox { - id: commPortCombo - width: _secondColumn - model: QGroundControl.linkManager.serialPortStrings + id: commPortCombo anchors.verticalCenter: parent.verticalCenter + width: _secondColumn + model: QGroundControl.linkManager.serialPortStrings + visible: QGroundControl.linkManager.serialPortStrings.length > 0 onActivated: { if (index != -1) { subEditConfig.portName = QGroundControl.linkManager.serialPorts[index] -- 2.22.0