Fix crash in action widget syntax

This commit is contained in:
James Westman 2022-04-18 15:35:19 -05:00
parent 3d4aae79c4
commit 3f8b38d219
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6

View file

@ -56,6 +56,9 @@ class ResponseId(AstNode):
from .gobject_object import Object from .gobject_object import Object
container_type = self.parent_by_type(Object).gir_class container_type = self.parent_by_type(Object).gir_class
if container_type is None:
return
gir = self.root.gir gir = self.root.gir
for namespace, name in ResponseId.ALLOWED_PARENTS: for namespace, name in ResponseId.ALLOWED_PARENTS: