2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

dashboard: preserve argeditor state across argument recomputations. Closes #486

This commit is contained in:
Sebastien Bourdeauducq 2016-07-01 15:23:40 +08:00
parent 2d1a47ca98
commit ea13d00087

View File

@ -376,8 +376,11 @@ class _ExperimentDock(QtWidgets.QMdiSubWindow):
arginfo[k][0]["default"] = v
self.manager.initialize_submission_arguments(self.expurl, arginfo)
argeditor_state = self.argeditor.save_state()
self.argeditor.deleteLater()
self.argeditor = _ArgumentEditor(self.manager, self, self.expurl)
self.argeditor.restore_state(argeditor_state)
self.layout.addWidget(self.argeditor, 0, 0, 1, 5)
def _load_hdf5_clicked(self):