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:
Bill Somerville 2015-02-27 17:37:37 +00:00
parent 476c0683a8
commit a37e07bdd0

View File

@ -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)