Skip to content

Commit 8f0a0d9

Browse files
author
jef
committed
next take on #2620 - not reproducable here
git-svn-id: http://svn.osgeo.org/qgis/trunk@13475 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 7a21742 commit 8f0a0d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/plugins/grass/qgsgrassmodule.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,9 @@ QgsGrassModuleStandardOptions::QgsGrassModuleStandardOptions(
333333

334334
// ? Does binary on Win need .exe extension ?
335335
// Return code 255 (-1) was correct in GRASS < 6.1.0
336-
if ( !process.waitForFinished()
336+
if ( !process.waitForStarted()
337+
|| !process.waitForReadyRead()
338+
|| !process.waitForFinished()
337339
|| ( process.exitCode() != 0 && process.exitCode() != 255 ) )
338340
{
339341
QgsDebugMsg( "process.exitCode() = " + QString::number( process.exitCode() ) );

0 commit comments

Comments
 (0)