Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix windows build (followup 58beed2)
  • Loading branch information
jef-n committed Feb 9, 2016
1 parent b9726d7 commit 3745207
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/plugins/grass/qgsgrassmodule.cpp
Expand Up @@ -148,15 +148,8 @@ QgsGrassModule::QgsGrassModule( QgsGrassTools *tools, QString moduleName, QgisIn
// => test if the module is in path and if it is not
// add .exe and test again
#ifdef Q_OS_WIN
if ( inExecPath( xName ) )
{
mXName = xName;
}
else if ( inExecPath( xName + ".exe" ) )
{
mXName = xName + ".exe";
}
else
mXName = QgsGrass::findModule( xName );
if ( mXName.isNull() )
{
QgsDebugMsg( "Module " + xName + " not found" );
mErrors.append( tr( "Module %1 not found" ).arg( xName ) );
Expand Down Expand Up @@ -666,7 +659,7 @@ void QgsGrassModule::run()

#ifdef Q_OS_WIN
// we already know it exists from execArguments()
QString exe = QgsGrassModule::findExec( mXName );
QString exe = QgsGrass::findModule( mXName );
QFileInfo fi( exe );
if ( !fi.isExecutable() )
{
Expand Down

0 comments on commit 3745207

Please sign in to comment.