mirror of https://github.com/m-labs/artiq.git
gui: setParent(None) before deleteLater() to remove dock appears unnecessary and causes memory corruption on Windows. Closes #362
This commit is contained in:
parent
059aa2f83e
commit
deb9a60ca3
|
@ -167,7 +167,6 @@ class _AppletDock(QDockWidgetCloseDetect):
|
|||
self.starting_stopping = False
|
||||
|
||||
if delete_self:
|
||||
self.setParent(None)
|
||||
self.deleteLater()
|
||||
|
||||
async def restart(self):
|
||||
|
|
|
@ -356,7 +356,6 @@ class LogDockManager:
|
|||
|
||||
def on_dock_closed(self, name):
|
||||
dock = self.docks[name]
|
||||
dock.setParent(None)
|
||||
dock.deleteLater()
|
||||
del self.docks[name]
|
||||
self.update_closable()
|
||||
|
|
Loading…
Reference in New Issue