Commit dfdb9b14 authored by kh1's avatar kh1
Browse files

Remove double latin1 string, fix indention.

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