summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeomappingmanagerengine.cpp
diff options
context:
space:
mode:
authorDavid Laing <david.laing@nokia.com>2011-12-22 11:07:59 +1000
committerQt by Nokia <qt-info@nokia.com>2011-12-22 02:39:42 +0100
commit1b1c6adf03d199bf7a2639c16232601c66600f7e (patch)
tree9fbd5505caa02cff57caf2eef547e76093f67134 /src/location/maps/qgeomappingmanagerengine.cpp
parent8fd44cfafa306cb6651a51a5ec16e64e3ffe37a8 (diff)
downloadqtlocation-1b1c6adf03d199bf7a2639c16232601c66600f7e.tar.gz
Fixes a crash bug related to the request queue.
The first item was being taken without first checking to see that the queue contained any items. Change-Id: I79ab9a63610c68678a7ada1b3affc347af14b79e Reviewed-by: Alex <alex.blasche@nokia.com>
Diffstat (limited to 'src/location/maps/qgeomappingmanagerengine.cpp')
-rw-r--r--src/location/maps/qgeomappingmanagerengine.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/location/maps/qgeomappingmanagerengine.cpp b/src/location/maps/qgeomappingmanagerengine.cpp
index 63752f34..a79db933 100644
--- a/src/location/maps/qgeomappingmanagerengine.cpp
+++ b/src/location/maps/qgeomappingmanagerengine.cpp
@@ -199,6 +199,11 @@ void QGeoMappingManagerEngine::requestNextTile()
if (d->stopped_)
return;
+ if (d->queue_.isEmpty()) {
+ d->timer_->stop();
+ return;
+ }
+
TileSpec ts = d->queue_.takeFirst();
QGeoTiledMapReply *reply = getTileImage(ts);