diff options
author | kh1 <qt-info@nokia.com> | 2010-10-11 16:15:17 +0200 |
---|---|---|
committer | kh1 <qt-info@nokia.com> | 2010-10-11 16:15:58 +0200 |
commit | dfdb9b1463559fc589b780a445461b04bd5fbb49 (patch) | |
tree | fe6cc459185c0a1e4bee57f2da399b9063098b2a /src/plugins/qt4projectmanager/qt-maemo/maemoqemumanager.cpp | |
parent | d23afc8e61ca78c20ca35daafec35ce31af066e9 (diff) | |
download | qt-creator-dfdb9b1463559fc589b780a445461b04bd5fbb49.tar.gz |
Remove double latin1 string, fix indention.
Reviewed-by: ck
Diffstat (limited to 'src/plugins/qt4projectmanager/qt-maemo/maemoqemumanager.cpp')
-rw-r--r-- | src/plugins/qt4projectmanager/qt-maemo/maemoqemumanager.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemoqemumanager.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemoqemumanager.cpp index 71209aa6ea..cfc3ceeeb9 100644 --- a/src/plugins/qt4projectmanager/qt-maemo/maemoqemumanager.cpp +++ b/src/plugins/qt4projectmanager/qt-maemo/maemoqemumanager.cpp @@ -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; } |