Use full device path for serial port names

Except  on Windows  where  the  obscure \\.\  device  root is  removed
because Windows users will not be used to it.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4978 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2015-02-19 15:18:47 +00:00
parent b844593080
commit c718bfd2fd

View File

@ -2381,7 +2381,9 @@ void Configuration::impl::fill_port_combo_box (QComboBox * cb)
{
if (!p.isBusy ())
{
cb->addItem (p.portName ());
// remove possibly confusing Windows device path (OK because
// it gets added back by Hamlib)
cb->addItem (p.systemLocation ().remove (QRegularExpression {R"(^\\\\\.\\)"}));
}
}
cb->addItem("USB");