[locale] Fix string value handled by XML parser

main
Adriaan de Groot 7 years ago
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…
Cancel
Save