Changeset - dfb7ffb1dc5b
[Not reviewed]
Mehmet Aslan - 7 years ago 2019-03-30 07:41:03
aaslan-mehmet@hotmail.com
device does not exist warning message added when port select
1 file changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/portcontrol.cpp
Show inline comments
 
@@ -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())
 
    {
0 comments (0 inline, 0 general)