enthought/pyface — pull request #14 by nmichaud (2011-11-10 14:45:55+00:00)
Title: BF: Handle view being closed through close button

I'm not sure of the best way of capturing the visibility change when the user closes the view using the close button. This seems to work without any side-effects - I'm open to suggestions for better implementations. The main issue is the visibilityChanged signal seems to be fired for a lot more than just showing/hiding the dockwidget - namely focus changes also trigger it (see http://doc.qt.nokia.com/latest/qdockwidget.html#visibilityChanged)