mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
a6ceea97c7
commit
d505ae1fad
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user