diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2014-12-23 09:15:21 +0100 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-01-07 07:15:57 +0100 |
commit | c566e7bf49a6d329f9ef6bfbee59aca8365e78ef (patch) | |
tree | 05be4749fdae7380f721be2a5839303d582a1097 /src/plugins/geoservices/nokia/qgeocodereply_nokia.cpp | |
parent | 1a1a6d0edf2d818f84606afbd6486ff0a4435b8b (diff) | |
download | qtlocation-c566e7bf49a6d329f9ef6bfbee59aca8365e78ef.tar.gz |
Fix crash in Nokia geocoding engine if results are empty
Also improves the behavior of the OSM plugin to the same event
Task-number: QTBUG-43523
Change-Id: I26a5eb1814f51bc66ecba89534842fd74273f37a
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Diffstat (limited to 'src/plugins/geoservices/nokia/qgeocodereply_nokia.cpp')
-rw-r--r-- | src/plugins/geoservices/nokia/qgeocodereply_nokia.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/geoservices/nokia/qgeocodereply_nokia.cpp b/src/plugins/geoservices/nokia/qgeocodereply_nokia.cpp index 7aaa6bd5..c4b04ece 100644 --- a/src/plugins/geoservices/nokia/qgeocodereply_nokia.cpp +++ b/src/plugins/geoservices/nokia/qgeocodereply_nokia.cpp @@ -71,8 +71,10 @@ QGeoCodeReplyNokia::~QGeoCodeReplyNokia() void QGeoCodeReplyNokia::abort() { - if (!m_reply && !m_parsing) + if (!m_reply) { + m_parsing = false; return; + } m_reply->abort(); |