[locale] Fix string value handled by XML parser
This commit is contained in:
parent
eea421f499
commit
0c1453ff18
@ -36,10 +36,8 @@ XMLGeoIP::processReply( const QByteArray& data )
|
|||||||
cDebug() << "GeoIP found" << tzElements.length() << "elements";
|
cDebug() << "GeoIP found" << tzElements.length() << "elements";
|
||||||
for ( int it = 0; it < tzElements.length(); ++it )
|
for ( int it = 0; it < tzElements.length(); ++it )
|
||||||
{
|
{
|
||||||
if ( tzElements.at(it).isText() )
|
auto e = tzElements.at(it).toElement();
|
||||||
{
|
return splitTZString( e.text() );
|
||||||
return splitTZString( tzElements.at(it).nodeValue() );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user