Commit f61a0512 authored by Paolo Angelelli's avatar Paolo Angelelli
Browse files

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: default avatarBogDan Vatra <bogdan@kdab.com>
Showing with 3 additions and 0 deletions
...@@ -319,6 +319,9 @@ void QDeclarativeGeocodeModel::pluginReady() ...@@ -319,6 +319,9 @@ void QDeclarativeGeocodeModel::pluginReady()
this, SLOT(geocodeFinished(QGeoCodeReply*))); this, SLOT(geocodeFinished(QGeoCodeReply*)));
connect(geocodingManager, SIGNAL(error(QGeoCodeReply*,QGeoCodeReply::Error,QString)), connect(geocodingManager, SIGNAL(error(QGeoCodeReply*,QGeoCodeReply::Error,QString)),
this, SLOT(geocodeError(QGeoCodeReply*,QGeoCodeReply::Error,QString))); this, SLOT(geocodeError(QGeoCodeReply*,QGeoCodeReply::Error,QString)));
if (complete_ && autoUpdate_)
update();
} }
/*! /*!
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment