diff options
author | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-06-02 15:27:22 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-06-09 07:31:13 (GMT) |
commit | de776b777bd9c1884bda4049d8f75020d6092ab7 (patch) | |
tree | b3f9bee3dbb20c3ce36dcc679da3ca24b6bb5b68 /src/gui/graphicsview | |
parent | fe640c1245075cabdafa88a16bdd33f9b49452c0 (diff) | |
download | Qt-de776b777bd9c1884bda4049d8f75020d6092ab7.zip Qt-de776b777bd9c1884bda4049d8f75020d6092ab7.tar.gz Qt-de776b777bd9c1884bda4049d8f75020d6092ab7.tar.bz2 |
Remove crash, remove item from pending updates when deleted.
This caused a crash in the contacts demo.
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.cpp b/src/gui/graphicsview/qgraphicsscene.cpp index 963c615..73d6a93 100644 --- a/src/gui/graphicsview/qgraphicsscene.cpp +++ b/src/gui/graphicsview/qgraphicsscene.cpp @@ -743,6 +743,7 @@ void QGraphicsScenePrivate::_q_removeItemLater(QGraphicsItem *item) hoverItems.removeAll(item); cachedItemsUnderMouse.removeAll(item); unpolishedItems.removeAll(item); + pendingUpdateItems.removeAll(item); //We remove all references of item from the sceneEventFilter arrays QMultiMap<QGraphicsItem*, QGraphicsItem*>::iterator iterator = sceneEventFilters.begin(); |