enthought / pyface

pyface: traits-capable windowing framework
Other
105 stars 55 forks source link

`SplitEditorAreaPane.destroy` creates new widgets #1206

Open corranwebster opened 1 year ago

corranwebster commented 1 year ago

Environment

Toolkit: Qt

Description

In the Qt backend, when SplitEditorAreaPane.destroy() is called it removes all open editors (this is good), but as a side-effect of this any DraggableTabWidgets in the layout create their empty_tab

Steps to Reproduce

Create and populate a SplitEditorAreaPane and then call destroy() to delete it. This is done in the tests for SplitEditorAreaPane for example.