blob: 3936f3441cca4945a607b8f8dfe78b7993f7d271 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
qt-bugs@ issue : none
Trolltech task ID : None
applied: no
author: Alexis Menard <alexis.menard@trolltech.com>
Fix deletion of a qgraphicswidget on clear focus even if it doesn't have the focus.
Will be included in 4.4.4
--- a/src/gui/graphicsview/qgraphicsitem.cpp
+++ b/src/gui/graphicsview/qgraphicsitem.cpp
@@ -1951,7 +1951,7 @@ void QGraphicsItem::setFocus(Qt::FocusRe
*/
void QGraphicsItem::clearFocus()
{
- if (!d_ptr->scene || !hasFocus())
+ if (!d_ptr->scene)
return;
if (d_ptr->isWidget) {
// Invisible widget items with focus must explicitly clear subfocus.
|