blob: 20080e1020457bc9badbfe9cdd276f867209a2ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
qt-bugs@ issue : N199058
Trolltech task ID : 199428 (Status: closed; Version fix: 4.4.0)
applied: no
author: Frerich Raabe <raabe@kde.org>
Fixes a crash in QGraphicsProxyWidget which was triggered when no
QGraphicsProxyWidget item in a QGraphicsScene had a QWidget associated
with it. As soon as the user pressed <Tab>, QGraphicsProxyWidget
attempted to give the focus to *some* QWidget (even if it was null).
--- a/src/gui/graphicsview/qgraphicsproxywidget.cpp
+++ b/src/gui/graphicsview/qgraphicsproxywidget.cpp
@@ -386,6 +386,10 @@
}
}
+ if (!child) {
+ return 0;
+ }
+
QWidget *oldChild = child;
do {
if (child->isEnabled()
|