[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";
|
||||
for ( int it = 0; it < tzElements.length(); ++it )
|
||||
{
|
||||
if ( tzElements.at(it).isText() )
|
||||
{
|
||||
return splitTZString( tzElements.at(it).nodeValue() );
|
||||
}
|
||||
auto e = tzElements.at(it).toElement();
|
||||
return splitTZString( e.text() );
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user