From 7a5535dc88a1125989d5fbcf36c2affe21a0351e Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 5 Jul 2019 22:58:08 +0200 Subject: [PATCH] Connect dialog: Fix scan for certain USB devices. Before the fix, selecting "USB" (it's selected by default) in the "Connect to device" dialog would incorrectly set a conn parameter to some serial or HID devices, even for scans for pure USB devices which are neither of those. This fixes bug #1403. --- pv/dialogs/connect.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pv/dialogs/connect.cpp b/pv/dialogs/connect.cpp index 3af93f14..077314f8 100644 --- a/pv/dialogs/connect.cpp +++ b/pv/dialogs/connect.cpp @@ -99,6 +99,7 @@ Connect::Connect(QWidget *parent, pv::DeviceManager &device_manager) : serial_config_layout->addWidget(&serial_devices_); serial_config_layout->addWidget(&serial_baudrate_); serial_config_layout->addWidget(new QLabel("baud")); + serial_config_->setEnabled(false); tcp_config_ = new QWidget(); QHBoxLayout *tcp_config_layout = new QHBoxLayout(tcp_config_); -- 2.30.2