browser: react to b3e55b7

This commit is contained in:
Robert Jördens 2016-05-25 16:36:27 +02:00
parent 26e98a13d0
commit 57e3d9ee34

View File

@ -240,7 +240,11 @@ class _ExperimentDock(QtWidgets.QMdiSubWindow):
self.expurl, exc_info=True)
return
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.argeditor.deleteLater()