summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/location/declarativemaps/qdeclarativegeoserviceprovider.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeoserviceprovider.cpp b/src/location/declarativemaps/qdeclarativegeoserviceprovider.cpp
index 483a5992..c1e3c81c 100644
--- a/src/location/declarativemaps/qdeclarativegeoserviceprovider.cpp
+++ b/src/location/declarativemaps/qdeclarativegeoserviceprovider.cpp
@@ -147,7 +147,7 @@ void QDeclarativeGeoServiceProvider::tryAttach()
sharedProvider_ = new QGeoServiceProvider(name_, parameterMap());
sharedProvider_->setQmlEngine(qmlEngine(this));
- sharedProvider_->setLocale(locales_.at(0));
+ sharedProvider_->setLocale(QLocale(locales_.at(0)));
sharedProvider_->setAllowExperimental(experimental_);
emit attached();
@@ -592,7 +592,7 @@ void QDeclarativeGeoServiceProvider::setLocales(const QStringList &locales)
locales_.append(QLocale().name());
if (sharedProvider_)
- sharedProvider_->setLocale(locales_.at(0));
+ sharedProvider_->setLocale(QLocale(locales_.at(0)));
emit localesChanged();
}