Skip to content

Commit

Permalink
Merge pull request #76 from ros-visualization/fix_parent_logic
Browse files Browse the repository at this point in the history
make finding new parent logic more robust
  • Loading branch information
dirk-thomas authored Dec 21, 2016
2 parents 49e51b9 + 9900c15 commit 5f90e33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qt_gui/src/qt_gui/dock_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ def _get_new_parent(self, widget):
while widget is not None:
if isinstance(widget, DockableMainWindow):
break
if not callable(widget.parent):
return None
widget = widget.parent()
return widget

Expand Down

0 comments on commit 5f90e33

Please sign in to comment.