summaryrefslogtreecommitdiff
path: root/src/location/declarativeplaces/qdeclarativesearchmodelbase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/declarativeplaces/qdeclarativesearchmodelbase.cpp')
-rw-r--r--src/location/declarativeplaces/qdeclarativesearchmodelbase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/declarativeplaces/qdeclarativesearchmodelbase.cpp b/src/location/declarativeplaces/qdeclarativesearchmodelbase.cpp
index ae457f66..78285e91 100644
--- a/src/location/declarativeplaces/qdeclarativesearchmodelbase.cpp
+++ b/src/location/declarativeplaces/qdeclarativesearchmodelbase.cpp
@@ -115,7 +115,7 @@ void QDeclarativeSearchModelBase::setSearchArea(const QVariant &searchArea)
s = searchArea.value<QGeoCircle>();
else if (searchArea.userType() == qMetaTypeId<QGeoShape>())
s = searchArea.value<QGeoShape>();
- else if (int(searchArea.type()) == qMetaTypeId<QObject *>()) {
+ else if (searchArea.typeId() == qMetaTypeId<QObject *>()) {
route = searchArea.value<QDeclarativeGeoRoute *>();
if (!route)
return;