mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-07 00:15:48 -04:00
qgis_process: fix unreported deadlock
This commit is contained in:
parent
312060fbc0
commit
cc7c1052e7
@ -422,7 +422,7 @@ QVariantMap QgsProcessingModelAlgorithm::processAlgorithm( const QVariantMap &pa
|
||||
QVariantMap results;
|
||||
try
|
||||
{
|
||||
if ( childAlg->flags() & QgsProcessingAlgorithm::FlagNoThreading )
|
||||
if ( ( childAlg->flags() & QgsProcessingAlgorithm::FlagNoThreading ) && ( QThread::currentThread() != qApp->thread() ) )
|
||||
{
|
||||
// child algorithm run step must be called on main thread
|
||||
auto runOnMainThread = [modelThread, &context, &modelFeedback, &results, &childAlg, &childParams]
|
||||
|
Loading…
x
Reference in New Issue
Block a user