diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-12-08 01:14:18 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-12-08 01:14:18 (GMT) |
commit | ad2a9bd8f0c0b57e1e40f5f93af21c018ceac86e (patch) | |
tree | c48cc5a97617313fbaab7614aa2ec3c4cc098caf /src/gui/graphicsview | |
parent | 95e441ebe51c11256c6888186b155782d0c5655d (diff) | |
download | Qt-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.cpp | 2 |
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) { |