Mercurial > hg > svapp
diff framework/MainWindowBase.cpp @ 142:8b31cdd7e005
* Fix for session loading from RDF
author | Chris Cannam |
---|---|
date | Tue, 25 Nov 2008 10:04:37 +0000 |
parents | 9a8c73ffdce0 |
children | 9ef382913c17 |
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp Fri Nov 21 18:03:14 2008 +0000 +++ b/framework/MainWindowBase.cpp Tue Nov 25 10:04:37 2008 +0000 @@ -1464,8 +1464,6 @@ m_viewManager->clearSelections(); - m_document->setMainModel(newModel); - AddPaneCommand *command = new AddPaneCommand(this); CommandHistory::getInstance()->addCommand(command); @@ -1475,11 +1473,10 @@ m_document->addLayerToView(pane, m_timeRulerLayer); } - Layer *newLayer = m_document->createImportedLayer(newModel); - - if (newLayer) { - m_document->addLayerToView(pane, newLayer); - } + Layer *newLayer = m_document->createMainModelLayer(LayerFactory::Waveform); + m_document->addLayerToView(pane, newLayer); + + m_document->setMainModel(newModel); FileOpenStatus layerStatus = openLayer(source);