[Marble-commits] KDE/kdeedu/marble/src/plugins/runner/nominatim
Dennis Nienhüser
earthwings at gentoo.org
Sun Nov 21 18:21:31 CET 2010
SVN commit 1199354 by nienhueser:
Make sure to emit a result when parsing the xml data fails.
M +4 -0 OsmNominatimRunner.cpp
--- trunk/KDE/kdeedu/marble/src/plugins/runner/nominatim/OsmNominatimRunner.cpp #1199353:1199354
@@ -146,12 +146,14 @@
void OsmNominatimRunner::handleReverseGeocodingResult( QNetworkReply* reply )
{
if ( !reply->bytesAvailable() ) {
+ returnNoReverseGeocodingResult();
return;
}
QDomDocument xml;
if ( !xml.setContent( reply->readAll() ) ) {
mDebug() << "Cannot parse osm nominatim result " << xml.toString();
+ returnNoReverseGeocodingResult();
return;
}
@@ -178,6 +180,8 @@
}
emit reverseGeocodingFinished( m_coordinates, placemark );
+ } else {
+ returnNoReverseGeocodingResult();
}
}
More information about the Marble-commits
mailing list