From 5bb6c7f0cfbb2c67cfd6a2f09e152f54cdc90dda Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Tue, 18 Feb 2020 15:55:19 +0100 Subject: [PATCH] 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 --- src/plugins/projectexplorer/runconfiguration.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/runconfiguration.cpp b/src/plugins/projectexplorer/runconfiguration.cpp index 5eaf0b19567..03c908a8596 100644 --- a/src/plugins/projectexplorer/runconfiguration.cpp +++ b/src/plugins/projectexplorer/runconfiguration.cpp @@ -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; }