Permalink
Browse files

BUG: active_tabwidget gets set to tabwidget of other editor areas.

When there are multiple editor area panes being used, on focus change,
the active_tabwidget is sometimes set to a widget belonging to another
editor area.
  • Loading branch information...
1 parent 615d003 commit 3db9f33000794130643cfa060587b2c131567be2 @punchagan punchagan committed Dec 1, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 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 3db9f33

Please sign in to comment.