Skip to content

Commit dfdb420

Browse files
committedFeb 11, 2016
[GRASS] fixed module search on windows, fixes #14241
1 parent 0d652b2 commit dfdb420

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎src/providers/grass/qgsgrass.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1991,7 +1991,11 @@ QString QgsGrass::findModule( QString module )
19911991
{
19921992
Q_FOREACH ( const QString& path, paths )
19931993
{
1994-
QString full = path + "/" + module + ext;
1994+
QString full = module + ext;;
1995+
if ( !path.isEmpty() )
1996+
{
1997+
full.prepend( path + "/" );
1998+
}
19951999
if ( QFile::exists( full ) )
19962000
{
19972001
QgsDebugMsg( "found " + full );

0 commit comments

Comments
 (0)
Please sign in to comment.