--- a/src/hbwidgets/itemviews/hbgriditemcontainer_p.cpp Thu Sep 02 20:44:51 2010 +0300
+++ b/src/hbwidgets/itemviews/hbgriditemcontainer_p.cpp Fri Sep 17 08:32:10 2010 +0300
@@ -31,6 +31,8 @@
#include <hbgriditemcontainer_p_p.h>
#include <hbmodeliterator.h>
+#include <QMetaObject>
+
/*!
\class HbGridItemContainer
\brief HbGridItemContainer implements HbAbstractItemContainer.
@@ -513,7 +515,8 @@
}
d->mLayout->removeItem(item, true);
- item->deleteLater();
+ item->hide();
+ QMetaObject::invokeMethod(item, "deleteLater", Qt::QueuedConnection);
}
void HbGridItemContainer::layoutAnimationFinished(QGraphicsLayoutItem *item, HbGridLayout::AnimationType animationType)