Merge pull request #507 from alfonnews/Fix_Dock_Close_Event_QLabel_still_running

Fix Dock close event QLabel still running with no parent
This commit is contained in:
Ogi Moore 2020-05-31 00:50:15 -07:00 committed by GitHub
commit c2cc92da52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -223,6 +223,7 @@ class Dock(QtGui.QWidget, DockDrop):
def close(self):
"""Remove this dock from the DockArea it lives inside."""
self.setParent(None)
QtGui.QLabel.close(self.label)
self.label.setParent(None)
self._container.apoptose()
self._container = None