Commit 6ddf1128 authored by dogmaphobic's avatar dogmaphobic

Don't delete link configuration if there is still an active link using it.

parent ccc5f622
......@@ -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