Explorar el Código

Fix for moving focus when root widget is focused

JoshEngebretson hace 10 años
padre
commit
fd57b2f78a
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      Source/ThirdParty/TurboBadger/tb_widgets.cpp

+ 3 - 0
Source/ThirdParty/TurboBadger/tb_widgets.cpp

@@ -630,6 +630,9 @@ bool TBWidget::MoveFocus(bool forward)
     if (!root)
         root = origin->GetParentRoot();
 
+    if (root == origin)
+        return false;
+
     TBWidget *current = origin;
     while (current)
     {