Skip to content

Commit

Permalink
Fix travis build error in inpector.py, line 382
Browse files Browse the repository at this point in the history
  • Loading branch information
Zen-CODE committed Mar 10, 2018
1 parent 67fb972 commit 61e05c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kivy/modules/inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,8 @@ def on_window_children(self, win, children):
if self.avoid_bring_to_top:
return
self.avoid_bring_to_top = True
win.remove_widget(self)
if self.parent:
self.parent.remove_widget(self)
win.add_widget(self)
self.avoid_bring_to_top = False

Expand Down

0 comments on commit 61e05c1

Please sign in to comment.