mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
Merge pull request #54060 from elpaso/bugfix-qgis_process-deadlock
qgis_process: fix unreported deadlock
This commit is contained in:
commit
d05ddc5fb9
@ -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