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;
|
++next_element;
|
||||||
|
|
||||||
if ( ! (*next_element)->isWidget() )
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if ( next_element == children.end() )
|
if ( next_element == children.end() )
|
||||||
next_element = children.begin();
|
next_element = children.begin();
|
||||||
|
|
||||||
|
if ( ! (*next_element)->isWidget() )
|
||||||
|
continue;
|
||||||
|
|
||||||
next = static_cast<FWidget*>(*next_element);
|
next = static_cast<FWidget*>(*next_element);
|
||||||
} while ( ! next
|
} while ( ! next
|
||||||
|| ! next->isEnabled()
|
|| ! next->isEnabled()
|
||||||
|
|
Loading…
Reference in New Issue