From f4b80c1210e444ad7454abfb80ba166ce2e2a5f2 Mon Sep 17 00:00:00 2001 From: Rafael Roquetto Date: Tue, 27 Nov 2012 16:24:30 -0200 Subject: [PATCH] Remove invalid assert from QGraphicsScene This assert has become invalid since commit 40fef403. After that commit, the 'origin' mentioned by the assert is not necessarily the first item of cachedItemsUnderMouse, since it origin can be reassigned at line 5735. Change-Id: Ibc0739b9fe31be3cc74110225940e9e173f585e0 Reviewed-by: Bernd Weimer Reviewed-by: Denis Dzyubenko Reviewed-by: Nicolas Arnaud-Cormos --- src/widgets/graphicsview/qgraphicsscene.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/widgets/graphicsview/qgraphicsscene.cpp b/src/widgets/graphicsview/qgraphicsscene.cpp index c19dca14ff2..311625761c7 100644 --- a/src/widgets/graphicsview/qgraphicsscene.cpp +++ b/src/widgets/graphicsview/qgraphicsscene.cpp @@ -5841,7 +5841,6 @@ bool QGraphicsScenePrivate::sendTouchBeginEvent(QGraphicsItem *origin, QTouchEve firstTouchPoint.scenePos(), static_cast(touchEvent->target())); } - Q_ASSERT(cachedItemsUnderMouse.first() == origin); // Set focus on the topmost enabled item that can take focus. bool setFocus = false;