Bug 1425 - cannot de-select conn type in "Connect to Device" dialog
Summary: cannot de-select conn type in "Connect to Device" dialog
Status: RESOLVED FIXED
Alias: None
Product: PulseView
Classification: Unclassified
Component: UI (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-05 15:57 CEST by Gerhard Sittig
Modified: 2019-11-15 20:39 CET (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerhard Sittig 2019-10-05 15:57:20 CEST
The "Connect to Device" dialog accepts a driver selection, connection type 
and parameters (USB, serial, TCP), allows to scan for devices, and make the 
application use the selected and scanned device. The device to use must be 
selected from the result set of a scan attempt.

The dialog allows to pick any of the connection types, but does not support 
the specification of "no connection type" (neither USB nor serial nor TCP). 
This prevents the scan for e.g. the Demo device. A (non-obvious for the 
unaware) workaround is to pick the Demo device from the triangle combobox 
that's "hidden" next to the button which opens the "Connect to Device" 
dialog.
Comment 1 Soeren Apel 2019-11-15 07:44:27 CET
> This prevents the scan for e.g. the Demo device.

For me, leaving the connection type as USB finds the demo device just fine. Is that not the case for you?
Comment 2 Gerhard Sittig 2019-11-15 15:42:08 CET
Re-ran a test with PV as of b0319e16359d. Reproduces the issue. The "scan" 
result is empty for demo when USB is selected. Terminal output is:

  sr: hwdriver: Invalid option 'conn'.

How to reproduce: Start pulseview with nothing connected, demo is found and 
used. Click on the "Demo device" combobox (the left side of it, not the 
triangle) which opens the "Connect to device" dialog. Select Demo, cannot 
de-select the connection type, stick with USB for example, press Scan and 
the result is empty. On second thought the triangle should reveal identical 
behaviour, just take a longer path to the dialog.

VCS history suggests that 7a5535dc88a1 (fix for bug 1403) may also fix the 
issue reported here. Need to check (don't have a current setup available 
here, cherry-picking failed in a quick attempt).

If current mainline works for you, and demo can get selected after using 
demo or something else before selecting demo, then feel free to close the 
report. Comments in bug 1403 suggest that other serial devices suffered from 
similar behaviour.
Comment 3 Soeren Apel 2019-11-15 20:39:27 CET
Fixed by the fix for #1403.