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,6 +240,10 @@ 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():
# 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 arginfo[k][0]["default"] = v
self.arguments = self._area.initialize_submission_arguments(arginfo) self.arguments = self._area.initialize_submission_arguments(arginfo)