summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 0d456f74..67fdc49e 100644
--- a/src/location/declarativeplaces/qdeclarativesearchmodelbase.cpp
+++ b/src/location/declarativeplaces/qdeclarativesearchmodelbase.cpp
@@ -112,7 +112,7 @@ void QDeclarativeSearchModelBase::setSearchArea(const QVariant &searchArea)
s = searchArea.value<QGeoCircle>();
else if (searchArea.userType() == qMetaTypeId<QGeoShape>())
s = searchArea.value<QGeoShape>();
- else if (searchArea.type() == qMetaTypeId<QObject *>()) {
+ else if (int(searchArea.type()) == qMetaTypeId<QObject *>()) {
route = searchArea.value<QDeclarativeGeoRoute *>();
if (!route)
return;