From 82869a95b788489b18ffacc7b85cd59576045dfe Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Mon, 19 Jun 2017 02:12:11 +0200 Subject: [PATCH] Better check at focusNextChild for the last element --- src/fwidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fwidget.cpp b/src/fwidget.cpp index 11d03f98..5a2609c2 100644 --- a/src/fwidget.cpp +++ b/src/fwidget.cpp @@ -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(*next_element); } while ( ! next || ! next->isEnabled()