summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-08-09 04:23:50 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2011-08-09 04:23:50 (GMT)
commitce36e8afa47e3625737208b5a912f9f191a59678 (patch)
tree18d6be07e588c434ac31eadc809267f89c45a632
parent922b77c50dd3ae4f772d541e82d2e5f30a05b400 (diff)
downloadQt-ce36e8afa47e3625737208b5a912f9f191a59678.zip
Qt-ce36e8afa47e3625737208b5a912f9f191a59678.tar.gz
Qt-ce36e8afa47e3625737208b5a912f9f191a59678.tar.bz2
Don't endless loop
Task-number: QTBUG-20699 Reviewed-by: Michael Brasser
-rw-r--r--src/gui/graphicsview/qgraphicsitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.cpp b/src/gui/graphicsview/qgraphicsitem.cpp
index ef53963..2ac2bdf 100644
--- a/src/gui/graphicsview/qgraphicsitem.cpp
+++ b/src/gui/graphicsview/qgraphicsitem.cpp
@@ -3297,7 +3297,7 @@ void QGraphicsItemPrivate::setFocusHelper(Qt::FocusReason focusReason, bool clim
}
if (climb) {
- while (f->d_ptr->focusScopeItem && f->d_ptr->focusScopeItem->isVisible())
+ while (f->d_ptr->focusScopeItem && f->d_ptr->focusScopeItem->isVisible() && f->d_ptr->focusScopeItem != f)
f = f->d_ptr->focusScopeItem;
}