Skip to content
Browse files

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

BUG: active_tabwidget gets set to tabwidget of other editor areas.
  • Loading branch information...
2 parents 615d003 + 3db9f33 commit 51e1868a3b018c91283968abf0e556e6aeac7e8c @pankajp pankajp committed Nov 30, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 pyface/ui/qt4/tasks/split_editor_area_pane.py
View
6 pyface/ui/qt4/tasks/split_editor_area_pane.py
@@ -318,9 +318,11 @@ def _focus_changed(self, old, new):
"""
if new:
if isinstance(new, DraggableTabWidget):
- self.active_tabwidget = new
+ if new.editor_area == self:
+ self.active_tabwidget = new
elif isinstance(new, QtGui.QTabBar):
- self.active_tabwidget = new.parent()
+ if new.parent().editor_area == self:
+ self.active_tabwidget = new.parent()
else:
# check if any of the editor widgets have focus.
# If yes, make it active

0 comments on commit 51e1868

Please sign in to comment.
Something went wrong with that request. Please try again.