Commit dfdb9b14 authored by kh1's avatar kh1
Browse files

Remove double latin1 string, fix indention.

Reviewed-by: ck
parent d23afc8e
......@@ -723,13 +723,14 @@ QString MaemoQemuManager::runtimeForQtVersion(const QString &qmakeCommand) const
if (infoReader.tokenType() == QXmlStreamReader::StartElement
&& infoReader.name() == QLatin1String("installed")) {
if (infoReader.readNext() == QXmlStreamReader::Characters
&& infoReader.text() == QLatin1String("true"))
if (attrs.hasAttribute(QLatin1String(QLatin1String("runtime_id"))))
&& infoReader.text() == QLatin1String("true")) {
if (attrs.hasAttribute(QLatin1String("runtime_id")))
installedRuntimes << attrs.value(QLatin1String("runtime_id")).toString();
else if (attrs.hasAttribute(QLatin1String(QLatin1String("id")))) {
else if (attrs.hasAttribute(QLatin1String("id"))) {
// older MADDE seems to use only id
installedRuntimes << attrs.value(QLatin1String("id")).toString();
}
}
break;
}
}
......
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