Browse Source

Link reference bug fixes

QGC4.4
Don Gagne 8 years ago
parent
commit
4211b7e971
  1. 7
      src/comm/LinkManager.cc

7
src/comm/LinkManager.cc

@ -642,16 +642,15 @@ void LinkManager::_updateAutoConnectLinks(void) @@ -642,16 +642,15 @@ void LinkManager::_updateAutoConnectLinks(void)
// Now remove all configs that are gone
foreach (LinkConfiguration* pDeleteConfig, _confToDelete) {
qCDebug(LinkManagerLog) << "Removing unused autoconnect config" << pDeleteConfig->name();
if (pDeleteConfig->link()) {
disconnectLink(pDeleteConfig->link());
}
for (int i=0; i<_sharedAutoconnectConfigurations.count(); i++) {
if (_sharedAutoconnectConfigurations[i].data() == pDeleteConfig) {
_sharedAutoconnectConfigurations.removeAt(i);
break;
}
}
if (pDeleteConfig->link()) {
disconnectLink(pDeleteConfig->link());
}
delete pDeleteConfig;
}
#endif
#endif // NO_SERIAL_LINK

Loading…
Cancel
Save