Skip to content

Commit d8bd20e

Browse files
committedApr 1, 2015
[GRASS] fix crash in browser when opening GRASS 6 mapset with GRASS 7
1 parent 8a43e90 commit d8bd20e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed
 

‎src/providers/grass/qgsgrass.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -433,13 +433,8 @@ int QgsGrass::error_routine( const char *msg, int fatal )
433433
//throw QgsGrass::Exception( QString::fromUtf8( msg ) );
434434
lastError = FATAL;
435435

436-
#if (GRASS_VERSION_MAJOR == 7) && (GRASS_VERSION_MINOR == 0)
437-
// G_fatal_error in GRASS 7.0.0beta1 always exits the second time it is called. This was fixed in 7.1.
438-
QMessageBox::warning( 0, QObject::tr( "Warning" ), QObject::tr( "Fatal error occurred in GRASS library. QGIS gets over the error but any next fatal error will cause QGIS exit without warning. This is a problem of GRASS 7.0.0beta1 but it is fixed in GRASS 7.1 and higher. Error message: %1" ).arg( msg ) );
439-
#endif
440-
441-
#if (GRASS_VERSION_MAJOR < 7) || (GRASS_VERSION_MAJOR == 7 && GRASS_VERSION_MINOR == 0)
442-
// longjump() is called by G_fatal_error in GRASS >= 7.1
436+
#if (GRASS_VERSION_MAJOR < 7)
437+
// longjump() is called by G_fatal_error in GRASS >= 7
443438
longjmp( QgsGrass::jumper, 1 );
444439
#endif
445440
}

0 commit comments

Comments
 (0)
Please sign in to comment.