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 6fa2dca402
commit ef9bbcaa69
2 changed files with 2 additions and 0 deletions

View File

@ -504,6 +504,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

@ -558,6 +558,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))