Mac OS: Fix a crash in tst_qgraphicsproxywidget.

Change-Id: Ie93d77f00ee1e6a04ac20794e4d2d1e63cbdb636
Reviewed-by: Andreas Aardal Hanssen <andreas@hanssen.name>
This commit is contained in:
Friedemann Kleint 2013-07-16 11:34:20 +02:00 committed by The Qt Project
parent 4a212be6f0
commit ef93397d70

View File

@ -356,6 +356,9 @@ QWidget *QGraphicsProxyWidgetPrivate::findFocusChild(QWidget *child, bool next)
}
}
if (!child)
return 0;
QWidget *oldChild = child;
uint focus_flag = qt_tab_all_widgets() ? Qt::TabFocus : Qt::StrongFocus;
do {