Mercurial > hg > svapp
comparison framework/Document.cpp @ 601:021d42e6c8cb
Avoid setting the session file path when loading an incomplete document, so that the default-file save-on-exit and File->Save are not activated (to avoid losing references to unfound audio files)
author | Chris Cannam |
---|---|
date | Mon, 18 Jun 2018 14:16:06 +0100 |
parents | b23bebfdfaba |
children | 10046d544e76 |
comparison
equal
deleted
inserted
replaced
600:ca96a514fbbb | 601:021d42e6c8cb |
---|---|
49 //!!! still need to handle command history, documentRestored/documentModified | 49 //!!! still need to handle command history, documentRestored/documentModified |
50 | 50 |
51 Document::Document() : | 51 Document::Document() : |
52 m_mainModel(0), | 52 m_mainModel(0), |
53 m_autoAlignment(false), | 53 m_autoAlignment(false), |
54 m_align(new Align()) | 54 m_align(new Align()), |
55 m_isIncomplete(false) | |
55 { | 56 { |
56 connect(this, | 57 connect(this, |
57 SIGNAL(modelAboutToBeDeleted(Model *)), | 58 SIGNAL(modelAboutToBeDeleted(Model *)), |
58 ModelTransformerFactory::getInstance(), | 59 ModelTransformerFactory::getInstance(), |
59 SLOT(modelAboutToBeDeleted(Model *))); | 60 SLOT(modelAboutToBeDeleted(Model *))); |