summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@trolltech.com>2009-03-17 14:07:53 (GMT)
committerAlexis Menard <alexis.menard@trolltech.com>2009-04-07 18:19:04 (GMT)
commit22a3772006c34e51f446eb3ab1cfaf5e40cab583 (patch)
treeaf9a169fdc8bb29ad6581d8044b23f36f6d51496 /src
parent72f34ea254d2ad93e11f740bf2ed2523f1975ee9 (diff)
downloadQt-22a3772006c34e51f446eb3ab1cfaf5e40cab583.zip
Qt-22a3772006c34e51f446eb3ab1cfaf5e40cab583.tar.gz
Qt-22a3772006c34e51f446eb3ab1cfaf5e40cab583.tar.bz2
Fixes: Remove from the custom index too (this will change anyway)
Diffstat (limited to 'src')
-rw-r--r--src/gui/graphicsview/qgraphicsscene.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.cpp b/src/gui/graphicsview/qgraphicsscene.cpp
index 8660853..77711ad 100644
--- a/src/gui/graphicsview/qgraphicsscene.cpp
+++ b/src/gui/graphicsview/qgraphicsscene.cpp
@@ -822,8 +822,13 @@ void QGraphicsScenePrivate::purgeRemovedItems()
return;
// Remove stale items from the BSP tree.
- if (indexMethod != QGraphicsScene::NoIndex)
- bspTree.removeItems(removedItems);
+ if (indexMethod != QGraphicsScene::NoIndex) {
+ if (indexMethod == QGraphicsScene::BspTreeIndex) {
+ bspTree.removeItems(removedItems);
+ } else {
+ customIndex->removeItems(removedItems);
+ }
+ }
// Purge this list.
removedItems.clear();