Fix Dock close event QLabel still running with no parent
This commit is contained in:
parent
8bd2fa87e1
commit
1f9ccccfd0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user