Fix xml parse error handling.

This commit is contained in:
con
2010-12-08 12:07:06 +01:00
parent 1d51764103
commit a0c30b15a1

View File

@@ -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 {