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