Skip to content


Fix for ticket #744 (crash associated with actions).
Browse files Browse the repository at this point in the history
git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Jul 28, 2007
1 parent a1784bb commit 09b7ac7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/core/qgsrunprocess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)));


Expand Down

0 comments on commit 09b7ac7

Please sign in to comment.