forked from qt-creator/qt-creator
External Tools: Unexpect file change in any case
... when the tool has finished. Change-Id: Ia3c03d083efd605d3f75a7246c1e03592656d04b Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -624,14 +624,13 @@ void ExternalToolRunner::started()
|
|||||||
|
|
||||||
void ExternalToolRunner::finished(int exitCode, QProcess::ExitStatus status)
|
void ExternalToolRunner::finished(int exitCode, QProcess::ExitStatus status)
|
||||||
{
|
{
|
||||||
if (status == QProcess::NormalExit && exitCode == 0) {
|
if (status == QProcess::NormalExit && exitCode == 0
|
||||||
if (m_tool->outputHandling() == ExternalTool::ReplaceSelection
|
&& (m_tool->outputHandling() == ExternalTool::ReplaceSelection
|
||||||
|| m_tool->errorHandling() == ExternalTool::ReplaceSelection) {
|
|| m_tool->errorHandling() == ExternalTool::ReplaceSelection)) {
|
||||||
emit ExternalToolManager::instance()->replaceSelectionRequested(m_processOutput);
|
emit ExternalToolManager::instance()->replaceSelectionRequested(m_processOutput);
|
||||||
}
|
|
||||||
if (m_tool->modifiesCurrentDocument())
|
|
||||||
DocumentManager::unexpectFileChange(m_expectedFileName);
|
|
||||||
}
|
}
|
||||||
|
if (m_tool->modifiesCurrentDocument())
|
||||||
|
DocumentManager::unexpectFileChange(m_expectedFileName);
|
||||||
ICore::messageManager()->printToOutputPane(
|
ICore::messageManager()->printToOutputPane(
|
||||||
tr("'%1' finished").arg(m_resolvedExecutable), MessageManager::Silent);
|
tr("'%1' finished").arg(m_resolvedExecutable), MessageManager::Silent);
|
||||||
deleteLater();
|
deleteLater();
|
||||||
|
|||||||
Reference in New Issue
Block a user