forked from M-Labs/artiq
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
|
self.starting_stopping = False
|
||||||
|
|
||||||
if delete_self:
|
if delete_self:
|
||||||
self.setParent(None)
|
|
||||||
self.deleteLater()
|
self.deleteLater()
|
||||||
|
|
||||||
async def restart(self):
|
async def restart(self):
|
||||||
|
@ -356,7 +356,6 @@ class LogDockManager:
|
|||||||
|
|
||||||
def on_dock_closed(self, name):
|
def on_dock_closed(self, name):
|
||||||
dock = self.docks[name]
|
dock = self.docks[name]
|
||||||
dock.setParent(None)
|
|
||||||
dock.deleteLater()
|
dock.deleteLater()
|
||||||
del self.docks[name]
|
del self.docks[name]
|
||||||
self.update_closable()
|
self.update_closable()
|
||||||
|
Loading…
Reference in New Issue
Block a user