Skip to content
Permalink
Browse files
Fix for ticket #744 (crash associated with actions).
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7110 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Jul 28, 2007
1 parent bba142b commit 0668bcae11bc0397a2f4043c23b97d10fe0188c5
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/core/qgsrunprocess.cpp
@@ -126,7 +126,15 @@ void QgsRunProcess::dialogGone()
// The dialog has gone, so the user is no longer interested in the
// output from the process. Since the process will run happily
// without the QProcess object, this instance and its data can then
// go too.
// go too, but disconnect the signals to prevent further functions in this
// class being called after it has been deleted (Qt seems not to be
// disconnecting them itself)

disconnect(mProcess, SIGNAL(error(QProcess::ProcessError)), this, SLOT(processError(QProcess::ProcessError)));
disconnect(mProcess, SIGNAL(readyReadStandardOutput()), this, SLOT(stdoutAvailable()));
disconnect(mProcess, SIGNAL(readyReadStandardError()), this, SLOT(stderrAvailable()));
disconnect(mProcess, SIGNAL(finished(int,QProcess::ExitStatus)), this, SLOT(processExit(int,QProcess::ExitStatus)));

die();
}

0 comments on commit 0668bca

Please sign in to comment.