Skip to content

Commit

Permalink
Merge pull request #76 from enthought/fix-destroy-editors
Browse files Browse the repository at this point in the history
FIX Iterating over list of editors while removing them.
  • Loading branch information
Pietro Berkes committed Jan 28, 2013
2 parents c240dea + f3077d7 commit b269c20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyface/ui/qt4/tasks/split_editor_area_pane.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def destroy(self):
# weird runtime errors trying to access non-existent objects
QtGui.QApplication.instance().focusChanged.disconnect(self._focus_changed)

for editor in self.editors:
for editor in self.editors[:]:
self.remove_editor(editor)

super(SplitEditorAreaPane, self).destroy()
Expand Down

0 comments on commit b269c20

Please sign in to comment.