Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > eca87bc66705310e09a9c520a085b36d > files > 5

qt4-4.4.3-1mdv2009.0.src.rpm

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).

Index: src/gui/graphicsview/qgraphicsproxywidget.cpp
===================================================================
--- src/gui/graphicsview/qgraphicsproxywidget.cpp	(revision 775038)
+++ src/gui/graphicsview/qgraphicsproxywidget.cpp	(working copy)
@@ -323,6 +323,10 @@
 	}
     }
 
+    if (!child) {
+	return 0;
+    }
+
     QWidget *oldChild = child;
     do {
         if (child->isEnabled()