diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-08-21 14:42:32 +0200 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-08-23 10:43:11 +0000 |
commit | f61a0512cc56c0e86870a66fcca43e0a16e4e8e9 (patch) | |
tree | 19e43a773d6a2408bec0d23f179dc608f153aff8 | |
parent | db8e4340d65eea4d82b49a67d525d33cdb0478fc (diff) | |
download | qtlocation-f61a0512cc56c0e86870a66fcca43e0a16e4e8e9.tar.gz |
Fix GeocodeModel not autoUpdating if plugin attaches late
This patch handles the case when the plugin attaches after
QDeclarativeGeocodeModel::componentComplete() has been
called.
Change-Id: Ib9e4991ab3a4a34730da2d55fae20a492ac9d9f2
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
-rw-r--r-- | src/location/declarativemaps/qdeclarativegeocodemodel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeocodemodel.cpp b/src/location/declarativemaps/qdeclarativegeocodemodel.cpp index ee435a5a..3e2a1aea 100644 --- a/src/location/declarativemaps/qdeclarativegeocodemodel.cpp +++ b/src/location/declarativemaps/qdeclarativegeocodemodel.cpp @@ -319,6 +319,9 @@ void QDeclarativeGeocodeModel::pluginReady() this, SLOT(geocodeFinished(QGeoCodeReply*))); connect(geocodingManager, SIGNAL(error(QGeoCodeReply*,QGeoCodeReply::Error,QString)), this, SLOT(geocodeError(QGeoCodeReply*,QGeoCodeReply::Error,QString))); + + if (complete_ && autoUpdate_) + update(); } /*! |