summaryrefslogtreecommitdiff
path: root/src/imports/location/qdeclarativegeomapitembase.cpp
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@nokia.com>2011-12-12 16:30:53 +0200
committerQt by Nokia <qt-info@nokia.com>2011-12-13 10:50:46 +0100
commit73790e789c095f06ea4467e501cea315d758a4f5 (patch)
tree53acf95dbe77a51e879e7ebd87eb3f54e5b2e92a /src/imports/location/qdeclarativegeomapitembase.cpp
parent9655258398566a408a90d820ad9988b437b8de3f (diff)
downloadqtlocation-73790e789c095f06ea4467e501cea315d758a4f5.tar.gz
First set of map(-item, -view) quick autotests.
Fixed misc findings. Change-Id: I8dce4e6ac557a4a2abaff0c0676c62c383b1e901 Reviewed-by: Juha Vuolle <juha.vuolle@nokia.com>
Diffstat (limited to 'src/imports/location/qdeclarativegeomapitembase.cpp')
-rw-r--r--src/imports/location/qdeclarativegeomapitembase.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/imports/location/qdeclarativegeomapitembase.cpp b/src/imports/location/qdeclarativegeomapitembase.cpp
index 0917cb10..572b8258 100644
--- a/src/imports/location/qdeclarativegeomapitembase.cpp
+++ b/src/imports/location/qdeclarativegeomapitembase.cpp
@@ -56,6 +56,9 @@ QDeclarativeGeoMapItemBase::QDeclarativeGeoMapItemBase(QQuickItem *parent)
QDeclarativeGeoMapItemBase::~QDeclarativeGeoMapItemBase()
{
+ //qDebug() << __FUNCTION__ << objectName() << quickMap();
+ if (quickMap_)
+ quickMap_->removeMapItem(this);
}
void QDeclarativeGeoMapItemBase::mapChanged()