OSDN Git Service

Hopefully fix exceptions when scripts are queued for objects in an app but the app...
authorJames Teh <jamie@jantrid.net>
Tue, 16 Nov 2010 06:08:07 +0000 (16:08 +1000)
committerJames Teh <jamie@jantrid.net>
Tue, 16 Nov 2010 06:08:07 +0000 (16:08 +1000)
source/inputCore.py

index a1f8eac..1340197 100644 (file)
@@ -112,7 +112,8 @@ class InputManager(baseObject.AutoPropertyObject):
                        # This lets gestures pass through unhindered where possible,\r
                        # as well as stopping a flood of actions when the core revives.\r
                        raise NoInputGestureAction\r
-               if api.getFocusObject().appModule.selfVoicing:\r
+               app = api.getFocusObject().appModule\r
+               if app and app.selfVoicing:\r
                        raise NoInputGestureAction\r
 \r
                speechEffect = gesture.speechEffectWhenExecuted\r