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@5807 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Sep 10, 2006
1 parent ad44151 commit 991a3e24d6f1df2a3499e3b1df528a43609fc7e7
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 991a3e2

Please sign in to comment.