changeset 28 | b7da29130b0e |
parent 23 | e6ad4ef83b23 |
--- a/src/hbwidgets/itemviews/hbtreeitemcontainer_p.cpp Thu Sep 02 20:44:51 2010 +0300 +++ b/src/hbwidgets/itemviews/hbtreeitemcontainer_p.cpp Fri Sep 17 08:32:10 2010 +0300 @@ -35,6 +35,7 @@ #include <qmath.h> #include <QDebug> +#include <QMetaObject> const int Hb_Recycle_Buffer_Shrink_Threshold = 2; @@ -567,7 +568,8 @@ } d->adjustContent(); } else { - item->deleteLater(); + item->hide(); + QMetaObject::invokeMethod(item, "deleteLater", Qt::QueuedConnection); } }