Permalink
Browse files

Merge pull request #72 from punchagan/fix-split-editor-area-focus

BUG: Checking for editor_area attribute of QTabBar instance crashes.
  • Loading branch information...
2 parents 51e1868 + e8c6bd7 commit c472fde444e0e1a3a456ac121bfd71f7b44ca476 @pankajp pankajp committed Dec 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 pyface/ui/qt4/tasks/split_editor_area_pane.py
@@ -321,7 +321,7 @@ def _focus_changed(self, old, new):
if new.editor_area == self:
self.active_tabwidget = new
elif isinstance(new, QtGui.QTabBar):
- if new.parent().editor_area == self:
+ if self.control.isAncestorOf(new):
self.active_tabwidget = new.parent()
else:
# check if any of the editor widgets have focus.

0 comments on commit c472fde

Please sign in to comment.