@@ -457,6 +457,7 @@ void NetworkEditorController::loadNetwork(const NetworkFileHandle& xml)
457457 serializationManager_->updateModuleNotes (xml->moduleNotes );
458458 serializationManager_->updateConnectionNotes (xml->connectionNotes );
459459 serializationManager_->updateModuleTags (xml->moduleTags );
460+ serializationManager_->updateDisabledComponents (xml->disabledComponents );
460461 }
461462 else
462463 Log::get () << INFO << " module position editor unavailable, module positions at default" << std::endl;
@@ -493,23 +494,23 @@ void NetworkEditorController::appendToNetwork(const NetworkFileHandle& xml)
493494 auto originalConnections = theNetwork_->connections ();
494495
495496 auto info = conv.appendXmlData (xml->network );
496- size_t startIndex = info.newModuleStartIndex ;
497+ auto startIndex = info.newModuleStartIndex ;
497498 ModuleCounter modulesDone;
498499 for (size_t i = startIndex; i < theNetwork_->nmodules (); ++i)
499500 {
500- ModuleHandle module = theNetwork_->module (i);
501+ auto module = theNetwork_->module (i);
501502 moduleAdded_ (module ->get_module_name (), module , modulesDone);
502503 }
503504
504505 {
505506 auto disable (createDynamicPortSwitch ());
506507 // this is handled by NetworkXMLConverter now--but now the logic is convoluted.
507508 // They need to be signaled again after the modules are signaled to alert the GUI. Hence the disabling of DPM
508- for (const ConnectionDescription & cd : theNetwork_->connections ())
509+ for (const auto & cd : theNetwork_->connections ())
509510 {
510511 if (std::find (originalConnections.begin (), originalConnections.end (), cd) == originalConnections.end ())
511512 {
512- ConnectionId id = ConnectionId::create (cd);
513+ auto id = ConnectionId::create (cd);
513514 connectionAdded_ (cd);
514515 }
515516 }
@@ -526,6 +527,7 @@ void NetworkEditorController::appendToNetwork(const NetworkFileHandle& xml)
526527 serializationManager_->updateConnectionNotes (xml->connectionNotes );
527528 xml->moduleTags .tags = remapIdBasedContainer (xml->moduleTags .tags , info.moduleIdMapping );
528529 serializationManager_->updateModuleTags (xml->moduleTags );
530+ // TODO: need disabled here?
529531 }
530532 else
531533 Log::get () << INFO << " module position editor unavailable, module positions at default" << std::endl;
0 commit comments