Skip to content
Permalink
Browse files
Treat the QProcess with more care so as to avoid a message about the
QProcess being deleted before its process finished.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5807 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Sep 10, 2006
1 parent a6ceea9 commit d505ae1fadefd2775220748926c2bf34f8f0ef7b
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/providers/grass/qgsgrass.cpp
@@ -203,7 +203,10 @@ void QgsGrass::init( void )
QProcess p;
p.start ( pagers.at(i) );
p.waitForStarted();
state = p.state();
state = p.state();
p.write("\004"); // Ctrl-D
p.closeWriteChannel();
p.waitForFinished(1000);
p.kill();

if ( state == QProcess::Running )

0 comments on commit d505ae1

Please sign in to comment.