Commit 160bd096 authored by David Schulz's avatar David Schulz
Browse files

External Tools: Unexpect file change in any case



... when the tool has finished.

Change-Id: Ia3c03d083efd605d3f75a7246c1e03592656d04b
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent e1fb42d9
......@@ -624,14 +624,13 @@ void ExternalToolRunner::started()
void ExternalToolRunner::finished(int exitCode, QProcess::ExitStatus status)
{
if (status == QProcess::NormalExit && exitCode == 0) {
if (m_tool->outputHandling() == ExternalTool::ReplaceSelection
|| m_tool->errorHandling() == ExternalTool::ReplaceSelection) {
emit ExternalToolManager::instance()->replaceSelectionRequested(m_processOutput);
}
if (m_tool->modifiesCurrentDocument())
DocumentManager::unexpectFileChange(m_expectedFileName);
if (status == QProcess::NormalExit && exitCode == 0
&& (m_tool->outputHandling() == ExternalTool::ReplaceSelection
|| m_tool->errorHandling() == ExternalTool::ReplaceSelection)) {
emit ExternalToolManager::instance()->replaceSelectionRequested(m_processOutput);
}
if (m_tool->modifiesCurrentDocument())
DocumentManager::unexpectFileChange(m_expectedFileName);
ICore::messageManager()->printToOutputPane(
tr("'%1' finished").arg(m_resolvedExecutable), MessageManager::Silent);
deleteLater();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment