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
 
@@ -311,12 +311,19 @@ void PortControl::togglePort()
 
}
 

	
 
void PortControl::selectListedPort(QString portName)
 
{
 
    // 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())
 
    {
 
        // if another port is already open, close it by toggling
 
        if (serialPort->isOpen())
 
        {
0 comments (0 inline, 0 general)