Skip to content

Commit

Permalink
Fixed build of grass provider and plugin on linux i've broken recently.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6663 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Feb 22, 2007
1 parent f61dbe0 commit c661d4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/plugins/grass/qgsgrasstools.cpp
Expand Up @@ -167,6 +167,10 @@ void QgsGrassTools::moduleClicked( Q3ListViewItem * item )

if ( name.length() == 0 ) return; // Section

#ifndef WIN32
QgsGrassShell* sh = 0;
#endif

QString path = QgsApplication::pkgDataPath() + "/grass/modules/" + name;
#ifdef QGISDEBUG
std::cerr << "path = " << path.ascii() << std::endl;
Expand Down
4 changes: 3 additions & 1 deletion src/providers/grass/qgsgrass.cpp
Expand Up @@ -412,9 +412,11 @@ QString QgsGrass::openMapset ( QString gisdbase, QString location, QString mapse
// TODO better wait
while ( process->isRunning () ) { }

#ifdef QGISDEBUG
#ifndef WIN32
int status = process->exitStatus ();
#ifdef QGISDEBUG
std::cerr << "status = " << status << std::endl;
#endif
#endif
delete process;

Expand Down

0 comments on commit c661d4f

Please sign in to comment.