Don't endless loop
Task-number: QTBUG-20699 Reviewed-by: Michael Brasser (cherry picked from commit ce36e8afa47e3625737208b5a912f9f191a59678) Change-Id: Iaaaabadbabaaaeaaaaaaaaffaaaeaaaaaaaacaaa Reviewed-on: http://codereview.qt.nokia.com/2757 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
This commit is contained in:
parent
81b559631a
commit
7b49a23888
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user