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
This commit is contained in:
g_j_m 2006-09-10 09:14:06 +00:00
parent a6ceea97c7
commit d505ae1fad

View File

@ -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 )