From a0c30b15a18c81c30023298126369d37be138ac3 Mon Sep 17 00:00:00 2001 From: con <qtc-committer@nokia.com> Date: Wed, 8 Dec 2010 12:07:06 +0100 Subject: [PATCH] Fix xml parse error handling. --- src/plugins/coreplugin/externaltool.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/coreplugin/externaltool.cpp b/src/plugins/coreplugin/externaltool.cpp index 1e4a220ce5f..494e561ff50 100644 --- a/src/plugins/coreplugin/externaltool.cpp +++ b/src/plugins/coreplugin/externaltool.cpp @@ -218,6 +218,10 @@ ExternalTool * ExternalTool::createFromXml(const QByteArray &xml, QString *error break; } tool->m_workingDirectory = reader.readElementText(); + } else { + reader.raiseError(QString::fromLatin1("Unknown element <%1> as subelement of <%2>").arg( + reader.qualifiedName().toString(), QLatin1String(kExecutable))); + break; } } } else { -- GitLab