Skip to content
Permalink
Browse files

GRASS py modules returns 1 getting interface description (fix 4667)

  • Loading branch information
brushtyler committed Jan 17, 2012
1 parent 35cd0b9 commit fdd98947d763af5023cbd70fb43750f7611ba8f0
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/plugins/grass/qgsgrassmodule.cpp
@@ -336,10 +336,12 @@ QgsGrassModuleStandardOptions::QgsGrassModuleStandardOptions(

// ? Does binary on Win need .exe extension ?
// Return code 255 (-1) was correct in GRASS < 6.1.0
// Return code 1 is the value (correct?) .py modules actually returns (see #4667)
if ( !process.waitForStarted()
|| !process.waitForReadyRead()
|| !process.waitForFinished()
|| ( process.exitCode() != 0 && process.exitCode() != 255 ) )
|| ( process.exitCode() != 0 && process.exitCode() != 255 &&
( !cmd.endsWith( ".py" ) || process.exitCode() != 1 ) ) )
{
QgsDebugMsg( "process.exitCode() = " + QString::number( process.exitCode() ) );
QMessageBox::warning( 0, tr( "Warning" ),

0 comments on commit fdd9894

Please sign in to comment.
You can’t perform that action at this time.