Skip to content
Permalink
Browse files

Fix crash when running gdal algorithms through modeler

Fixes #41671
  • Loading branch information
nyalldawson committed Feb 19, 2021
1 parent d4b1f3d commit 2d7f2d09c8d87e2e060a92bc515335fd1eec8dae
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsrunprocess.cpp
@@ -308,12 +308,12 @@ int QgsBlockingProcess::run( QgsFeedback *feedback )
loop.quit();
}, Qt::DirectConnection );

connect( &p, &QProcess::readyReadStandardOutput, this, [&p, this]
connect( &p, &QProcess::readyReadStandardOutput, &p, [&p, this]
{
QByteArray ba = p.readAllStandardOutput();
mStdoutHandler( ba );
} );
connect( &p, &QProcess::readyReadStandardError, this, [&p, this]
connect( &p, &QProcess::readyReadStandardError, &p, [&p, this]
{
QByteArray ba = p.readAllStandardError();
mStderrHandler( ba );

0 comments on commit 2d7f2d0

Please sign in to comment.