diff framework/Document.cpp @ 456:8125b8cb8128

Pass on signal from transform failure
author Chris Cannam
date Wed, 10 Jun 2015 13:13:22 +0100
parents 72c662fe7ea3
children 74d575708e06
line wrap: on
line diff
--- a/framework/Document.cpp	Thu May 21 15:32:18 2015 +0100
+++ b/framework/Document.cpp	Wed Jun 10 13:13:22 2015 +0100
@@ -51,9 +51,15 @@
     m_mainModel(0),
     m_autoAlignment(false)
 {
-    connect(this, SIGNAL(modelAboutToBeDeleted(Model *)),
+    connect(this,
+            SIGNAL(modelAboutToBeDeleted(Model *)),
             ModelTransformerFactory::getInstance(),
             SLOT(modelAboutToBeDeleted(Model *)));
+
+    connect(ModelTransformerFactory::getInstance(),
+            SIGNAL(transformFailed(QString, QString)),
+            this,
+            SIGNAL(modelGenerationFailed(QString, QString)));
 }
 
 Document::~Document()