bugfix
This commit is contained in:
parent
09fa8f2a3e
commit
c40ce7528f
@ -668,8 +668,10 @@ class Blocks(EventDispatcher):
|
||||
'widget=', from_widget)
|
||||
if isinstance(from_widget, WindowBase):
|
||||
return None
|
||||
return find_widget_by_id(id,
|
||||
from_widget=from_widget.parent)
|
||||
if from_widget.parent:
|
||||
return find_widget_by_id(id,
|
||||
from_widget=from_widget.parent)
|
||||
return None
|
||||
else:
|
||||
for c in from_widget.children:
|
||||
ret = find_widget_by_id(id,from_widget=c)
|
||||
|
Loading…
Reference in New Issue
Block a user