mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 19:04:32 +02:00
Fixing xml parsing
This commit is contained in:
parent
f4c98a8fa4
commit
a21991c5c2
1 changed files with 2 additions and 2 deletions
|
@ -3527,9 +3527,9 @@ void Application::parseVersionXml() {
|
|||
|
||||
QXmlStreamReader xml(qobject_cast<QNetworkReply*>(sender));
|
||||
|
||||
while(!xml.atEnd() && !xml.hasError()) {
|
||||
while (!xml.atEnd() && !xml.hasError()) {
|
||||
if (xml.tokenType() == QXmlStreamReader::StartElement && xml.name() == operatingSystem) {
|
||||
while(!(xml.tokenType() == QXmlStreamReader::EndElement && xml.name() == operatingSystem)) {
|
||||
while (!(xml.tokenType() == QXmlStreamReader::EndElement && xml.name() == operatingSystem)) {
|
||||
if (xml.tokenType() == QXmlStreamReader::StartElement && xml.name().toString() == "version") {
|
||||
xml.readNext();
|
||||
latestVersion = xml.text().toString();
|
||||
|
|
Loading…
Reference in a new issue