forked from qt-creator/qt-creator
CMakePM: Ensure Initial Parameters values on build config Clone
Fixes: QTCREATORBUG-28759 Change-Id: I8d7fa476ff487cf4bf5005f1ccfec65ffc59ed1c Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -502,6 +502,10 @@ CMakeBuildSettingsWidget::CMakeBuildSettingsWidget(CMakeBuildSystem *bs) :
|
||||
updateInitialCMakeArguments();
|
||||
});
|
||||
|
||||
connect(m_buildSystem->target()->project(), &Project::aboutToSaveSettings, this, [this] {
|
||||
updateInitialCMakeArguments();
|
||||
});
|
||||
|
||||
connect(bc->aspect<InitialCMakeArgumentsAspect>(),
|
||||
&Utils::BaseAspect::labelLinkActivated,
|
||||
this,
|
||||
|
@@ -276,6 +276,9 @@ void BuildSettingsWidget::cloneConfiguration()
|
||||
if (name.isEmpty())
|
||||
return;
|
||||
|
||||
// Save the current build configuration settings, so that the clone gets all the settings
|
||||
m_target->project()->saveSettings();
|
||||
|
||||
BuildConfiguration *bc = BuildConfigurationFactory::clone(m_target, m_buildConfiguration);
|
||||
if (!bc)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user