diff transform/ModelTransformerFactory.cpp @ 1079:6ea7761a418b

Emit a signal if transform fails
author Chris Cannam
date Wed, 10 Jun 2015 13:11:45 +0100
parents c7e9afcbf070
children ba16388b937d
line wrap: on
line diff
--- a/transform/ModelTransformerFactory.cpp	Wed Jun 10 13:10:26 2015 +0100
+++ b/transform/ModelTransformerFactory.cpp	Wed Jun 10 13:11:45 2015 +0100
@@ -285,6 +285,12 @@
         m_handlers.erase(transformer);
     }
 
+    if (transformer->isAbandoned()) {
+        if (transformer->getMessage() != "") {
+            emit transformFailed("", transformer->getMessage());
+        }
+    }
+    
     transformer->wait(); // unnecessary but reassuring
     delete transformer;
 }