# HG changeset patch # User Mehmet Aslan # Date 2019-03-30 07:41:03 # Node ID dfb7ffb1dc5babdc528a79dfa181d75c9b37f20e # Parent 9b75748e06be5684d26a592e41815fb7b4385414 device does not exist warning message added when port select diff --git a/src/portcontrol.cpp b/src/portcontrol.cpp --- a/src/portcontrol.cpp +++ b/src/portcontrol.cpp @@ -314,6 +314,13 @@ void PortControl::selectListedPort(QStri { // portName may be coming from combobox portName = portName.split(" ")[0]; + + QSerialPortInfo portInfo(portName); + if (portInfo.isNull()) + { + qWarning() << "Device doesn't exists:" << portName; + } + // has selection actually changed if (portName != serialPort->portName()) {