Commit 886b40b5 authored by Don Gagne's avatar Don Gagne

Merge pull request #1553 from dogmaphobic/serialConfig

Don't delete link configuration if there is still an active link.
parents 2bb2421b 6ddf1128
......@@ -506,9 +506,12 @@ void LinkManager::_updateConfigurationList(void)
// We only care about dynamic links
if(pLink->isDynamic()) {
if(pLink->type() == LinkConfiguration::TypeSerial) {
SerialConfiguration* pSerial = dynamic_cast<SerialConfiguration*>(pLink);
if(!currentPorts.contains(pSerial->portName())) {
_confToDelete.append(pSerial);
// Don't mess with connected link. Let it deal with the disapearing device.
if(pLink->getLink() == NULL) {
SerialConfiguration* pSerial = dynamic_cast<SerialConfiguration*>(pLink);
if(!currentPorts.contains(pSerial->portName())) {
_confToDelete.append(pSerial);
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment