ProjectExplorer: Call RunConfiguration::update() when restoring

Otherwise, the executable path will not be set right after cloning a run
configuration. This is due to the fact that it's not a stored attribute,
but is retrieved from the build system.

Change-Id: I948a2765b5b5d7707b44a72fcde7559e2742284c
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2020-02-18 15:55:19 +01:00
parent 0b6386d1f8
commit 5bb6c7f0cf

View File

@@ -561,8 +561,10 @@ RunConfiguration *RunConfigurationFactory::restore(Target *parent, const QVarian
const Core::Id id = idFromMap(map);
if (id.name().startsWith(factory->m_runConfigBaseId.name())) {
RunConfiguration *rc = factory->create(parent);
if (rc->fromMap(map))
if (rc->fromMap(map)) {
rc->update();
return rc;
}
delete rc;
return nullptr;
}