Mercurial > hg > svapp
comparison framework/SVFileReader.cpp @ 691:c8ba09756eff by-id
Work on management of alignment-related models
author | Chris Cannam |
---|---|
date | Fri, 12 Jul 2019 13:58:02 +0100 |
parents | e0b0f3e163ca |
children | 3c5dc95bea91 |
comparison
equal
deleted
inserted
replaced
690:827a522a5da4 | 691:c8ba09756eff |
---|---|
482 // their lifespans are entirely dictated by the models that | 482 // their lifespans are entirely dictated by the models that |
483 // "own" them even though they were read independently from | 483 // "own" them even though they were read independently from |
484 // the .sv file. (pity we don't have a nicer way to handle | 484 // the .sv file. (pity we don't have a nicer way to handle |
485 // this) | 485 // this) |
486 if (!ModelById::isa<AlignmentModel>(modelId)) { | 486 if (!ModelById::isa<AlignmentModel>(modelId)) { |
487 m_document->addImportedModel(modelId); | 487 m_document->addNonDerivedModel(modelId); |
488 } | 488 } |
489 | 489 |
490 // but we add all models including alignment ones to the added | 490 // but we add all models including alignment ones to the added |
491 // set, so they don't get released by our own destructor | 491 // set, so they don't get released by our own destructor |
492 m_addedModels.insert(modelId); | 492 m_addedModels.insert(modelId); |