Skip to content
Snippets Groups Projects
Commit dfdb9b14 authored by kh1's avatar kh1
Browse files

Remove double latin1 string, fix indention.

Reviewed-by: ck
parent d23afc8e
No related branches found
No related tags found
No related merge requests found
......@@ -723,12 +723,13 @@ 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"))))
installedRuntimes << attrs.value(QLatin1String("runtime_id")).toString();
else if (attrs.hasAttribute(QLatin1String(QLatin1String("id")))) {
// older MADDE seems to use only id
installedRuntimes << attrs.value(QLatin1String("id")).toString();
&& infoReader.text() == QLatin1String("true")) {
if (attrs.hasAttribute(QLatin1String("runtime_id")))
installedRuntimes << attrs.value(QLatin1String("runtime_id")).toString();
else if (attrs.hasAttribute(QLatin1String("id"))) {
// older MADDE seems to use only id
installedRuntimes << attrs.value(QLatin1String("id")).toString();
}
}
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment