Prevents an infinite loop when a FormGroup has no widget which can accept the focus

This commit is contained in:
Bertrand Songis
2021-02-22 21:53:46 +01:00
parent e71b959624
commit d0b517e9f7
+1 -1
View File
@@ -196,7 +196,7 @@ void FormGroup::setFocus(uint8_t flag)
else if (next) {
next->setFocus(SET_FOCUS_FORWARD);
}
else if (!(windowFlags & NO_FOCUS)) {
else {
clearFocus();
focusWindow = this;
}