summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorabcd <amos.choy@nokia.com>2012-06-29 14:49:45 +1000
committerQt by Nokia <qt-info@nokia.com>2012-07-05 10:00:01 +0200
commitb663a134285e0409d3bc90910ae6f4cf27d0b61c (patch)
tree6d0e4ede0e23dd44d104b711638ecad27f0c903e /src/plugins
parentc0f279390c5c81d253764da0e99bc4460df6495b (diff)
downloadqtlocation-b663a134285e0409d3bc90910ae6f4cf27d0b61c.tar.gz
Fix setting of ratings count in nokia plugin.
Change-Id: I6302b2e40961732e98ed61de0ce5518691740a11 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/geoservices/nokia/placesv2/qplacedetailsreplyimpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/geoservices/nokia/placesv2/qplacedetailsreplyimpl.cpp b/src/plugins/geoservices/nokia/placesv2/qplacedetailsreplyimpl.cpp
index efa3ec50..5bfbe6cf 100644
--- a/src/plugins/geoservices/nokia/placesv2/qplacedetailsreplyimpl.cpp
+++ b/src/plugins/geoservices/nokia/placesv2/qplacedetailsreplyimpl.cpp
@@ -267,7 +267,7 @@ void QPlaceDetailsReplyImpl::replyFinished()
QPlaceRatings ratings;
ratings.setAverage(ratingsObject.value(QLatin1String("average")).toDouble());
- ratings.setCount(ratingsObject.value(QLatin1String("count")).toString().toInt());
+ ratings.setCount(ratingsObject.value(QLatin1String("count")).toDouble());
ratings.setMaximum(5.0);
place.setRatings(ratings);