From ee618603687dbe3104eb479096b65fe25c44c8f3 Mon Sep 17 00:00:00 2001 From: acfloria Date: Wed, 14 Feb 2018 14:39:47 +0100 Subject: [PATCH] Save and load high latency property to/from link configurations --- src/comm/LinkManager.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/comm/LinkManager.cc b/src/comm/LinkManager.cc index a425e1a81..573b9932d 100644 --- a/src/comm/LinkManager.cc +++ b/src/comm/LinkManager.cc @@ -338,6 +338,7 @@ void LinkManager::saveLinkConfigurationList() settings.setValue(root + "/name", linkConfig->name()); settings.setValue(root + "/type", linkConfig->type()); settings.setValue(root + "/auto", linkConfig->isAutoConnect()); + settings.setValue(root + "/high_latency", linkConfig->isHighLatency()); // Have the instance save its own values linkConfig->saveSettings(settings, root); } @@ -369,6 +370,7 @@ void LinkManager::loadLinkConfigurationList() if(!name.isEmpty()) { LinkConfiguration* pLink = NULL; bool autoConnect = settings.value(root + "/auto").toBool(); + bool highLatency = settings.value(root + "/high_latency").toBool(); switch((LinkConfiguration::LinkType)type) { #ifndef NO_SERIAL_LINK case LinkConfiguration::TypeSerial: @@ -403,6 +405,7 @@ void LinkManager::loadLinkConfigurationList() if(pLink) { //-- Have the instance load its own values pLink->setAutoConnect(autoConnect); + pLink->setHighLatency(highLatency); pLink->loadSettings(settings, root); addConfiguration(pLink); linksChanged = true; -- 2.22.0