From 058c12974277e51cd009c5434c5d4648f4c5c302 Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Sun, 12 Jul 2015 23:28:45 +0200 Subject: [PATCH] Improve focusFirstChild() and focusLastChild() --- src/fwidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fwidget.cpp b/src/fwidget.cpp index 74d3e767..7a5f8e61 100644 --- a/src/fwidget.cpp +++ b/src/fwidget.cpp @@ -1283,7 +1283,10 @@ bool FWidget::focusFirstChild (void) if ( widget->numOfChildren() >= 1 ) { if ( ! widget->focusFirstChild() ) + { + ++iter; continue; + } } else widget->setFocus();