Mercurial > hg > svapp
diff framework/MainWindowBase.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 | e56cc6fe7da2 |
children | b5000a78249a |
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp Fri Jul 12 09:40:56 2019 +0100 +++ b/framework/MainWindowBase.cpp Fri Jul 12 13:58:02 2019 +0100 @@ -1727,7 +1727,7 @@ CommandHistory::getInstance()->startCompoundOperation (tr("Import \"%1\"").arg(source.getBasename()), true); - m_document->addImportedModel(newModel); + m_document->addNonDerivedModel(newModel); AddPaneCommand *command = new AddPaneCommand(this); CommandHistory::getInstance()->addCommand(command); @@ -1771,7 +1771,7 @@ CommandHistory::getInstance()->startCompoundOperation (tr("Import \"%1\"").arg(source.getBasename()), true); - m_document->addImportedModel(newModel); + m_document->addNonDerivedModel(newModel); if (replace) { m_document->removeLayerFromView(pane, replace); @@ -3321,7 +3321,7 @@ CommandHistory::getInstance()->startCompoundOperation (tr("Import Recorded Audio"), true); - m_document->addImportedModel(modelId); + m_document->addNonDerivedModel(modelId); AddPaneCommand *command = new AddPaneCommand(this); CommandHistory::getInstance()->addCommand(command);