Browse Source

Minor fix to allow disabling of forms from within a UI callback.

Chris Culy 14 years ago
parent
commit
33f7ffe498
1 changed files with 5 additions and 0 deletions
  1. 5 0
      gameplay/src/Container.cpp

+ 5 - 0
gameplay/src/Container.cpp

@@ -297,6 +297,11 @@ namespace gameplay
             }
             }
         }
         }
 
 
+        if (!isEnabled())
+        {
+            return false;
+        }
+
         switch (evt)
         switch (evt)
         {
         {
         case Touch::TOUCH_PRESS:
         case Touch::TOUCH_PRESS: