forked from M-Labs/artiq
1
0
Fork 0

browser,dashboard: delete MDI subwindows when they are closed

This commit is contained in:
Sebastien Bourdeauducq 2017-07-29 20:36:38 +08:00
parent 692dc0803b
commit 2998372d08
2 changed files with 2 additions and 0 deletions

View File

@ -507,6 +507,7 @@ class ExperimentsArea(QtWidgets.QMdiArea):
exc_info=True)
dock = _ExperimentDock(self, expurl, {})
asyncio.ensure_future(dock._recompute_arguments())
dock.setAttribute(QtCore.Qt.WA_DeleteOnClose)
self.addSubWindow(dock)
dock.show()
dock.sigClosed.connect(partial(self.on_dock_closed, dock))

View File

@ -562,6 +562,7 @@ class ExperimentManager:
del self.submission_arguments[expurl]
dock = _ExperimentDock(self, expurl)
self.open_experiments[expurl] = dock
dock.setAttribute(QtCore.Qt.WA_DeleteOnClose)
self.main_window.centralWidget().addSubWindow(dock)
dock.show()
dock.sigClosed.connect(partial(self.on_dock_closed, expurl))