summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-12-08 01:14:18 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-12-08 01:14:18 (GMT)
commitad2a9bd8f0c0b57e1e40f5f93af21c018ceac86e (patch)
treec48cc5a97617313fbaab7614aa2ec3c4cc098caf /src/gui/graphicsview
parent95e441ebe51c11256c6888186b155782d0c5655d (diff)
downloadQt-ad2a9bd8f0c0b57e1e40f5f93af21c018ceac86e.zip
Qt-ad2a9bd8f0c0b57e1e40f5f93af21c018ceac86e.tar.gz
Qt-ad2a9bd8f0c0b57e1e40f5f93af21c018ceac86e.tar.bz2
Fix crash.
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r--src/gui/graphicsview/qgraphicsitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.cpp b/src/gui/graphicsview/qgraphicsitem.cpp
index bc47872..dd76f1c 100644
--- a/src/gui/graphicsview/qgraphicsitem.cpp
+++ b/src/gui/graphicsview/qgraphicsitem.cpp
@@ -2181,7 +2181,7 @@ void QGraphicsItemPrivate::setVisibleHelper(bool newVisible, bool explicitly, bo
}
// Enable subfocus
- if (newVisible) {
+ if (scene && newVisible) {
QGraphicsItem *p = parent;
bool done = false;
while (p) {