diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2011-08-09 04:23:50 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2011-08-09 04:23:50 (GMT) |
commit | ce36e8afa47e3625737208b5a912f9f191a59678 (patch) | |
tree | 18d6be07e588c434ac31eadc809267f89c45a632 /src/gui | |
parent | 922b77c50dd3ae4f772d541e82d2e5f30a05b400 (diff) | |
download | Qt-ce36e8afa47e3625737208b5a912f9f191a59678.zip Qt-ce36e8afa47e3625737208b5a912f9f191a59678.tar.gz Qt-ce36e8afa47e3625737208b5a912f9f191a59678.tar.bz2 |
Don't endless loop
Task-number: QTBUG-20699
Reviewed-by: Michael Brasser
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/graphicsview/qgraphicsitem.cpp | 2 |
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; } |