mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 05:38:46 -05:00
Don't use QSerialPortInfo::isBusy() to filter available ports
The above member opens the port and that twiddles DTR/RTS which is unhelpful if they are connected to PTT. Instead a primitive port name filter to try and detect unuseable ends of serial port pairs is employed. This may need further tests to exclude similar devices yet to be discovered. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4994 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
476c0683a8
commit
a37e07bdd0
@ -2379,7 +2379,7 @@ void Configuration::impl::fill_port_combo_box (QComboBox * cb)
|
||||
cb->clear ();
|
||||
Q_FOREACH (auto const& p, QSerialPortInfo::availablePorts ())
|
||||
{
|
||||
if (!p.isBusy ())
|
||||
if (!p.portName ().contains ( "NULL" )) // virtual serial port pairs
|
||||
{
|
||||
// remove possibly confusing Windows device path (OK because
|
||||
// it gets added back by Hamlib)
|
||||
|
Loading…
Reference in New Issue
Block a user