forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user