Skip to content
Permalink
Browse files

fix windows build (followup 58beed2)

  • Loading branch information
jef-n committed Feb 9, 2016
1 parent b9726d7 commit 3745207d4977c6893e0244463c2bab0424d532b0
Showing with 3 additions and 10 deletions.
  1. +3 −10 src/plugins/grass/qgsgrassmodule.cpp
@@ -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 ) );
@@ -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() )
{

0 comments on commit 3745207

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