forked from qt-creator/qt-creator
Utils: Drop QProcess specific parameters from QtcProcess::finished()
Mid-term plan is to concentrate on use of QtcProcess::result() instead which is a bit more system-agnostic. There's quite a bit of potential for downstream cleanup by re-using QtcProcess::exitMessage() now. Change-Id: I3806b3f5933d96e64b7cfb18cc6c52823fddcbcd Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -679,9 +679,9 @@ void ExternalToolRunner::started()
|
||||
m_process->closeWriteChannel();
|
||||
}
|
||||
|
||||
void ExternalToolRunner::finished(int exitCode, QProcess::ExitStatus status)
|
||||
void ExternalToolRunner::finished()
|
||||
{
|
||||
if (status == QProcess::NormalExit && exitCode == 0
|
||||
if (m_process->result() == QtcProcess::FinishedWithSuccess
|
||||
&& (m_tool->outputHandling() == ExternalTool::ReplaceSelection
|
||||
|| m_tool->errorHandling() == ExternalTool::ReplaceSelection)) {
|
||||
ExternalToolManager::emitReplaceSelectionRequested(m_processOutput);
|
||||
|
||||
Reference in New Issue
Block a user