Improve focusFirstChild() and focusLastChild()

This commit is contained in:
Markus Gans 2015-07-12 23:28:45 +02:00
parent 8b195f7783
commit 058c129742
1 changed files with 3 additions and 0 deletions

View File

@ -1283,7 +1283,10 @@ bool FWidget::focusFirstChild (void)
if ( widget->numOfChildren() >= 1 )
{
if ( ! widget->focusFirstChild() )
{
++iter;
continue;
}
}
else
widget->setFocus();