Fix Dock close event QLabel still running with no parent

This commit is contained in:
Alberto Fontán Correa 2017-07-03 10:30:39 +02:00 committed by Ogi
parent 8bd2fa87e1
commit 1f9ccccfd0

View File

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