Better check at focusNextChild for the last element
This commit is contained in:
parent
ddb1c884e4
commit
82869a95b7
|
@ -1911,12 +1911,12 @@ bool FWidget::focusNextChild()
|
|||
{
|
||||
++next_element;
|
||||
|
||||
if ( ! (*next_element)->isWidget() )
|
||||
continue;
|
||||
|
||||
if ( next_element == children.end() )
|
||||
next_element = children.begin();
|
||||
|
||||
if ( ! (*next_element)->isWidget() )
|
||||
continue;
|
||||
|
||||
next = static_cast<FWidget*>(*next_element);
|
||||
} while ( ! next
|
||||
|| ! next->isEnabled()
|
||||
|
|
Loading…
Reference in New Issue