From b768dab2d5128e603890efa8acdf9dfd9939349f Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Fri, 27 Feb 2015 17:37:37 +0000 Subject: [PATCH] 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 --- Configuration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Configuration.cpp b/Configuration.cpp index 85f429f99..1c9ba69ab 100644 --- a/Configuration.cpp +++ b/Configuration.cpp @@ -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)