changeset 136:6d2e49c59b3b

* Add region model and layer; improve assignment of model types to feature extraction transforms with duration
author Chris Cannam
date Thu, 18 Sep 2008 16:08:14 +0000
parents b742f579ced0
children e2aec1708a2c
files framework/Document.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/framework/Document.cpp	Thu Sep 18 12:33:30 2008 +0000
+++ b/framework/Document.cpp	Thu Sep 18 16:08:14 2008 +0000
@@ -220,6 +220,9 @@
 
     if (types.empty()) {
 	std::cerr << "WARNING: Document::createLayerForTransformer: no valid display layer for output of transform " << transform.getIdentifier().toStdString() << std::endl;
+        newModel->aboutToDelete();
+        emit modelAboutToBeDeleted(newModel);
+        m_models.erase(newModel);
 	delete newModel;
 	return 0;
     }