comparison 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
comparison
equal deleted inserted replaced
1078:ce82bcdc95d0 1079:6ea7761a418b
283 m_handlers[transformer]->noMoreModelsAvailable(); 283 m_handlers[transformer]->noMoreModelsAvailable();
284 } 284 }
285 m_handlers.erase(transformer); 285 m_handlers.erase(transformer);
286 } 286 }
287 287
288 if (transformer->isAbandoned()) {
289 if (transformer->getMessage() != "") {
290 emit transformFailed("", transformer->getMessage());
291 }
292 }
293
288 transformer->wait(); // unnecessary but reassuring 294 transformer->wait(); // unnecessary but reassuring
289 delete transformer; 295 delete transformer;
290 } 296 }
291 297
292 void 298 void