]> sigrok.org Git - pulseview.git/commitdiff
Connect dialog: Fix scan for certain USB devices.
authorUwe Hermann <redacted>
Fri, 5 Jul 2019 20:58:08 +0000 (22:58 +0200)
committerUwe Hermann <redacted>
Fri, 5 Jul 2019 20:58:08 +0000 (22:58 +0200)
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

index 3af93f1476f2433a5b593b865fa1f15647a69e96..077314f8fa76c1ceb5defc323d2cc48927a33e0c 100644 (file)
@@ -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_);