forked from M-Labs/artiq
1
0
Fork 0

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
1 changed files with 3 additions and 0 deletions

View File

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