forked from M-Labs/artiq
1
0
Fork 0

browser: react to b3e55b7

This commit is contained in:
Robert Jördens 2016-05-25 16:36:27 +02:00
parent 26e98a13d0
commit 57e3d9ee34
1 changed files with 5 additions and 1 deletions

View File

@ -240,7 +240,11 @@ class _ExperimentDock(QtWidgets.QMdiSubWindow):
self.expurl, exc_info=True) self.expurl, exc_info=True)
return return
for k, v in overrides.items(): for k, v in overrides.items():
arginfo[k][0]["default"] = v # Some values (e.g. scans) may have multiple defaults in a list
if isinstance(arginfo[k][0].get("default"), list):
arginfo[k][0]["default"].insert(0, v)
else:
arginfo[k][0]["default"] = v
self.arguments = self._area.initialize_submission_arguments(arginfo) self.arguments = self._area.initialize_submission_arguments(arginfo)
self.argeditor.deleteLater() self.argeditor.deleteLater()